Skip to content

Commit 8b6260a

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.5
2 parents 778f18e + 8ca1471 commit 8b6260a

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

+7-8
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121

2222
/**
2323
* @internal
24+
*
25+
* @group Others
2426
*/
2527
final class GetCompiledModelTest extends CIUnitTestCase
2628
{
27-
/**
28-
* @var Model
29-
*/
30-
private $model;
29+
private ?object $model = null;
3130

3231
/**
3332
* Create an instance of Model for use in testing.
@@ -46,11 +45,11 @@ private function createModel(string $modelName): Model
4645
public function testGetCompiledInsert(): void
4746
{
4847
$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".');
5049

5150
$this->createModel(UserObjModel::class);
5251

53-
$sql = $this->model
52+
$this->model
5453
->set('name', 'Mark')
5554
->set('email', '[email protected]')
5655
->getCompiledInsert();
@@ -62,11 +61,11 @@ public function testGetCompiledInsert(): void
6261
public function testGetCompiledUpdate(): void
6362
{
6463
$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".');
6665

6766
$this->createModel(UserObjModel::class);
6867

69-
$sql = $this->model
68+
$this->model
7069
->set('name', 'Mark')
7170
->set('email', '[email protected]')
7271
->getCompiledUpdate();

0 commit comments

Comments
 (0)