Skip to content

Commit f1665ca

Browse files
authored
Merge pull request #7217 from kenjis/fix-test-EntityTest
test: replace deprecated expectErrorMessage()
2 parents f02c04a + 3937e4f commit f1665ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Entity/EntityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function testCastTimestamp()
429429
public function testCastTimestampException()
430430
{
431431
$this->expectException(CastException::class);
432-
$this->expectErrorMessage('Type casting "timestamp" expects a correct timestamp.');
432+
$this->expectExceptionMessage('Type casting "timestamp" expects a correct timestamp.');
433433

434434
$entity = $this->getCastEntity();
435435
$entity->ninth = 'some string';
@@ -725,7 +725,7 @@ public function testCustomCast()
725725
public function testCustomCastException()
726726
{
727727
$this->expectException(CastException::class);
728-
$this->expectErrorMessage('The "Tests\Support\Entity\Cast\NotExtendsBaseCast" class must inherit the "CodeIgniter\Entity\Cast\BaseCast" class');
728+
$this->expectExceptionMessage('The "Tests\Support\Entity\Cast\NotExtendsBaseCast" class must inherit the "CodeIgniter\Entity\Cast\BaseCast" class');
729729

730730
$entity = $this->getCustomCastEntity();
731731

0 commit comments

Comments
 (0)