Skip to content

Commit 3937e4f

Browse files
committed
test: replace deprecated expectErrorMessage()
1 parent f02c04a commit 3937e4f

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)