Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelmajied94abusuliman committed Sep 4, 2024
1 parent b07ce1a commit 8e2bfd2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,15 @@ public function testListPackingGroupItems(): void
$amzn = $amzn->usingMarketplace('ATVPDKIKX0DER');
$response = $amzn->fulfillment_inbound20240320->listPackingGroupItems(
inbound_plan_id: $inbound_plan_id = Str::random(38),
packing_option_id: $packing_option_id = Str::random(38),
packing_group_id: $packing_group_id = Str::random(38),
);

$this->assertInstanceOf(ListPackingGroupItemsResponse::class, $response);
$this->assertEquals('ITEM_POLYBAGGING', $response->items[0]->prep_instructions[0]->prep_type->value);

$http->assertSent(function (Request $request) use ($inbound_plan_id, $packing_option_id, $packing_group_id) {
$http->assertSent(function (Request $request) use ($inbound_plan_id, $packing_group_id) {
$this->assertEquals('GET', $request->method());
$this->assertEquals('https://sellingpartnerapi-na.amazon.com/inbound/fba/2024-03-20/inboundPlans/' . $inbound_plan_id
. '/packingOptions/' . $packing_option_id
. '/packingGroups/' . $packing_group_id
. '/items', $request->url());

Expand Down

0 comments on commit 8e2bfd2

Please sign in to comment.