Skip to content

Commit 8ca1471

Browse files
authored
Merge pull request #8305 from kenjis/test-move-GetCompiledModelTest
test: move GetCompiledModelTest that was in wrong place
2 parents 75d1b3b + be10f21 commit 8ca1471

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/_support/Models/GetCompiledModelTest.php renamed to tests/system/Models/GetCompiledModelTest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@
1919

2020
/**
2121
* @internal
22+
*
23+
* @group Others
2224
*/
2325
final class GetCompiledModelTest extends CIUnitTestCase
2426
{
25-
/**
26-
* @var Model
27-
*/
28-
private $model;
27+
private ?object $model = null;
2928

3029
/**
3130
* Create an instance of Model for use in testing.
@@ -44,11 +43,11 @@ private function createModel(string $modelName): Model
4443
public function testGetCompiledInsert(): void
4544
{
4645
$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".');
4847

4948
$this->createModel(UserObjModel::class);
5049

51-
$sql = $this->model
50+
$this->model
5251
->set('name', 'Mark')
5352
->set('email', '[email protected]')
5453
->getCompiledInsert();
@@ -60,11 +59,11 @@ public function testGetCompiledInsert(): void
6059
public function testGetCompiledUpdate(): void
6160
{
6261
$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".');
6463

6564
$this->createModel(UserObjModel::class);
6665

67-
$sql = $this->model
66+
$this->model
6867
->set('name', 'Mark')
6968
->set('email', '[email protected]')
7069
->getCompiledUpdate();

0 commit comments

Comments
 (0)