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