add freight orders to carrier

This commit is contained in:
Yisroel Baum 2025-11-13 20:31:11 +02:00
parent 14d7ddfdd3
commit 4971b86180
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 13 additions and 0 deletions

View file

@ -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
);