Skip to content

Commit

Permalink
chore: Fixed unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcesoldier committed Aug 30, 2024
1 parent 4f4b886 commit 84a3cdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tests/Unit/Domain/Model/Tag/PageIdTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function testIsValidShouldFailWithPageIdZero(): void

public function testIsValidShouldFailWithPageIdNotNumeric(): void
{
$this->expectException(\TypeError::class);
$tag = new PageIdTag('string');
$this->assertFalse($tag->isValid());
}

public function testIsValidWithInteger(): void
Expand Down
3 changes: 1 addition & 2 deletions Tests/Unit/System/HeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ protected function setUp(): void

public function testShouldThrowRuntimeExceptionWithInvalidTag(): void
{
$this->expectException(RuntimeException::class);
$this->expectExceptionCode(1_435_047_447);
$this->expectException(\TypeError::class);
$tag = new PageIdTag('adfasdf');
$this->header->sendHeaderForTag($tag);
}
Expand Down

0 comments on commit 84a3cdb

Please sign in to comment.