add freight orders to carrier
This commit is contained in:
parent
14d7ddfdd3
commit
4971b86180
4 changed files with 13 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ class GetAllCarriersTest extends TestCase
|
|||
$notes = 'some notes';
|
||||
$loadProfile = 'LTL/FTL';
|
||||
$countriesServing = ['USA', 'FRA', 'UK'];
|
||||
$freightOrders = [];
|
||||
$repo = new FakeCarrierRepository();
|
||||
$repo->save(new Carrier(
|
||||
0,
|
||||
|
|
@ -28,6 +29,7 @@ class GetAllCarriersTest extends TestCase
|
|||
$notes,
|
||||
$loadProfile,
|
||||
$countriesServing,
|
||||
$freightOrders,
|
||||
));
|
||||
$useCase = new GetAllCarriers($repo);
|
||||
$response = $useCase->execute();
|
||||
|
|
@ -41,6 +43,7 @@ class GetAllCarriersTest extends TestCase
|
|||
$notes,
|
||||
$loadProfile,
|
||||
$countriesServing,
|
||||
$freightOrders,
|
||||
)],
|
||||
$response
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue