fix: updated test with latest code updates
This commit is contained in:
parent
045e2adac8
commit
38c1d43d2a
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ covers(ListCampaigns::class, Input::class, Output::class, CampaignListItem::clas
|
|||
describe('list campaigns use case', function (): void {
|
||||
$coupon = CouponFactory::make();
|
||||
$campaign1 = CampaignFactory::make(name: 'Campaign A', brandCode: 'AAA01', couponCodes: [$coupon->code]);
|
||||
$campaign2 = CampaignFactory::make(name: 'Campaign B', brandCode: 'AAA02', couponCodes: [$coupon->code], published: false);
|
||||
$campaign2 = CampaignFactory::hydrated(name: 'Campaign B', brandCode: 'AAA02', couponCodes: [$coupon->code], published: false);
|
||||
$campaign3 = CampaignFactory::make(name: 'Campaign C', brandCode: 'AAA02', couponCodes: [$coupon->code]);
|
||||
|
||||
$pagination = Pagination::firstPage();
|
||||
|
|
@ -30,7 +30,7 @@ describe('list campaigns use case', function (): void {
|
|||
]
|
||||
);
|
||||
|
||||
it('maps repository campaigns to list items, preserving pagination and sort', function () use ($pagination, $campaign1, $campaign2): void {
|
||||
it('lists campaigns with sorts and filters', function () use ($pagination, $campaign1, $campaign2): void {
|
||||
// GIVEN
|
||||
// Uses $campaign1 + $campaign2
|
||||
$paginated = new Paginated($pagination, [$campaign1, $campaign2], 2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue