Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Oct 8, 2024
1 parent 98a2247 commit 7a875c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Database/Relations/DuplicateRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Winter\Storm\Tests\Database\Relations;

use Winter\Storm\Database\Model;
use Winter\Storm\Exception\ApplicationException;
use Winter\Storm\Exception\SystemException;
use Winter\Storm\Tests\Database\Fixtures\Author;
use Winter\Storm\Tests\Database\Fixtures\DuplicateRelationNote;
use Winter\Storm\Tests\DbTestCase;
Expand All @@ -26,7 +26,7 @@ public function testMethodRelationWhenPropertyRelationExists()

public function testMethodPropertyWhenMethodRelationExists()
{
$this->expectException(ApplicationException::class);
$this->expectException(SystemException::class);
$this->expectExceptionMessageMatches('/Relation "author" in model "' . preg_quote(DuplicateRelationNote::class) . '" is defined both/');

Model::unguard();
Expand All @@ -42,7 +42,7 @@ public function testMethodPropertyWhenMethodRelationExists()

public function testGetRelationDefinitionWhenBothExist()
{
$this->expectException(ApplicationException::class);
$this->expectException(SystemException::class);
$this->expectExceptionMessageMatches('/Relation "author" in model "' . preg_quote(DuplicateRelationNote::class) . '" is defined both/');

$note = new DuplicateRelationNote;
Expand Down

0 comments on commit 7a875c8

Please sign in to comment.