Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvdm committed Nov 2, 2023
1 parent 7536d60 commit c5c6576
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Domain/BillableObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PHPUnit\Framework\TestCase;
use SandwaveIo\RealtimeRegister\Domain\Billable;
use SandwaveIo\RealtimeRegister\Exceptions\InvalidArgumentException;
use ValueError;

/**
* This TestCase is used to test all single Billable Objects.
Expand Down Expand Up @@ -32,7 +33,7 @@ public static function parserDataSet(): array
'invalid billable action' => [
Billable::class,
include __DIR__ . '/data/billable_invalid_action.php',
InvalidArgumentException::class,
ValueError::class,
],
];
}
Expand Down
3 changes: 2 additions & 1 deletion tests/Domain/DomainObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
use SandwaveIo\RealtimeRegister\Domain\Zone;
use SandwaveIo\RealtimeRegister\Exceptions\InvalidArgumentException;
use TypeError;
use ValueError;

/**
* This TestCase is used to test all single Domain Objects.
Expand Down Expand Up @@ -69,7 +70,7 @@ public static function parserDataSet(): array
'invalid billable (action)' => [
Billable::class,
include __DIR__ . '/data/billable_invalid_action.php',
InvalidArgumentException::class,
ValueError::class,
],
'valid contact (all fields)' => [
Contact::class,
Expand Down

0 comments on commit c5c6576

Please sign in to comment.