File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 21
21
22
22
/**
23
23
* @internal
24
+ *
25
+ * @group Others
24
26
*/
25
27
final class GetCompiledModelTest extends CIUnitTestCase
26
28
{
27
- /**
28
- * @var Model
29
- */
30
- private $ model ;
29
+ private ?object $ model = null ;
31
30
32
31
/**
33
32
* Create an instance of Model for use in testing.
@@ -46,11 +45,11 @@ private function createModel(string $modelName): Model
46
45
public function testGetCompiledInsert (): void
47
46
{
48
47
$ this ->expectException (ModelException::class);
49
- $ this ->expectExceptionMessage ('You cannot use ` getCompiledInsert()` in ` Tests\Support\Models\UserObjModel` . ' );
48
+ $ this ->expectExceptionMessage ('You cannot use " getCompiledInsert()" in " Tests\Support\Models\UserObjModel" . ' );
50
49
51
50
$ this ->createModel (UserObjModel::class);
52
51
53
- $ sql = $ this ->model
52
+ $ this ->model
54
53
->set ('name ' , 'Mark ' )
55
54
->
set (
'email ' ,
'[email protected] ' )
56
55
->getCompiledInsert ();
@@ -62,11 +61,11 @@ public function testGetCompiledInsert(): void
62
61
public function testGetCompiledUpdate (): void
63
62
{
64
63
$ this ->expectException (ModelException::class);
65
- $ this ->expectExceptionMessage ('You cannot use ` getCompiledUpdate()` in ` Tests\Support\Models\UserObjModel` . ' );
64
+ $ this ->expectExceptionMessage ('You cannot use " getCompiledUpdate()" in " Tests\Support\Models\UserObjModel" . ' );
66
65
67
66
$ this ->createModel (UserObjModel::class);
68
67
69
- $ sql = $ this ->model
68
+ $ this ->model
70
69
->set ('name ' , 'Mark ' )
71
70
->
set (
'email ' ,
'[email protected] ' )
72
71
->getCompiledUpdate ();
You can’t perform that action at this time.
0 commit comments