File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function testCanAddCartLineItem()
2323
2424 $ this ->getApi ()->cart ($ id )->items ()->add ($ lineItem , CartItemsApi::INCLUDE_REDIRECT_URLS );
2525
26- $ this ->assertEquals ("carts/ $ id/items " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
26+ $ this ->assertEquals ("carts/ $ id/items " , $ this ->getLastRequestPath ());
2727 }
2828
2929 public function testCanDeleteCartLineItem ()
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function testCanGetCart()
1414 $ id = 'aae435b7-e8a4-48f2-abcd-ad0675dc3123 ' ;
1515 $ cart = $ this ->getApi ()->cart ($ id )->get ()->getCart ();
1616 $ this ->assertEquals (1815 , $ cart ->cart_amount );
17- $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
17+ $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequestPath ());
1818 }
1919
2020 public function testCanCreateACart ()
@@ -23,7 +23,7 @@ public function testCanCreateACart()
2323 $ cart = new Cart ();
2424
2525 $ this ->getApi ()->carts ()->create ($ cart );
26- $ this ->assertEquals ("carts " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
26+ $ this ->assertEquals ("carts " , $ this ->getLastRequestPath ());
2727 }
2828
2929 public function testCanUpdateCustomerIdForCart ()
@@ -33,7 +33,7 @@ public function testCanUpdateCustomerIdForCart()
3333
3434 $ this ->getApi ()->cart ($ id )->updateCustomerId (3 );
3535
36- $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
36+ $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequestPath ());
3737 $ this ->assertEquals (json_encode (['customer_id ' => 3 ]), $ this ->getLastRequest ()->getBody ());
3838 $ this ->markTestIncomplete ();
3939 }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function testCanGetBrandMetafield(): void
2222
2323 $ response = $ this ->getApi ()->catalog ()->brand (158 )->metafield (8 )->get ();
2424 $ this ->assertEquals ('Shelf 3, Bin 5 ' , $ response ->getMetafield ()->value );
25- $ this ->assertEquals ('catalog/brands/158/metafields/8 ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
25+ $ this ->assertEquals ('catalog/brands/158/metafields/8 ' , $ this ->getLastRequestPath ());
2626 }
2727
2828 public function testCanGetAllBrandMetafields (): void
@@ -32,6 +32,6 @@ public function testCanGetAllBrandMetafields(): void
3232 $ response = $ this ->getApi ()->catalog ()->brand (11 )->metafields ()->getAll ();
3333 $ this ->assertEquals (2 , $ response ->getPagination ()->total );
3434 $ this ->assertEquals ('Warehouse Locations ' , $ response ->getMetafields ()[0 ]->namespace );
35- $ this ->assertEquals ('catalog/brands/11/metafields ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
35+ $ this ->assertEquals ('catalog/brands/11/metafields ' , $ this ->getLastRequestPath ());
3636 }
3737}
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ public function testCanSetApiUrlCorrectlyForGetAll(): void
3838 $ this ->setReturnData ('catalog__categories__111__metafields__get_all.json ' );
3939 $ this ->getApi ()->catalog ()->category (111 )->metafields ()->getAll ();
4040
41- $ this ->assertEquals ('catalog/categories/111/metafields ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
41+ $ this ->assertEquals ('catalog/categories/111/metafields ' , $ this ->getLastRequestPath ());
4242 }
4343
4444 public function testCanSetApiUrlCorrectlyForGet (): void
4545 {
4646 $ this ->setReturnData ('catalog__categories__158__metafields__8__get.json ' );
4747 $ this ->getApi ()->catalog ()->category (158 )->metafield (8 )->get ();
4848
49- $ this ->assertEquals ('catalog/categories/158/metafields/8 ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
49+ $ this ->assertEquals ('catalog/categories/158/metafields/8 ' , $ this ->getLastRequestPath ());
5050 }
5151}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public function testCanGetOrderMetafield(): void
1111 $ this ->setReturnData ('orders__2__metafields__3__get.json ' );
1212
1313 $ this ->getApi ()->order (2 )->metafield (3 )->get ();
14- $ this ->assertEquals ('orders/2/metafields/3 ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
14+ $ this ->assertEquals ('orders/2/metafields/3 ' , $ this ->getLastRequestPath ());
1515 }
1616
1717 public function testCanGetAllOrderMetafields (): void
@@ -20,6 +20,6 @@ public function testCanGetAllOrderMetafields(): void
2020
2121 $ response = $ this ->getApi ()->order (1 )->metafields ()->getAll ();
2222 $ this ->assertEquals (2 , $ response ->getPagination ()->total );
23- $ this ->assertEquals ('orders/1/metafields ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
23+ $ this ->assertEquals ('orders/1/metafields ' , $ this ->getLastRequestPath ());
2424 }
2525}
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ public function testCanGetSubscribers(): void
1616 $ this ->setReturnData ('no-data-paginated.json ' );
1717
1818 $ this ->getApi ()->customers ()->subscribers ()->getAll ()->getSubscribers ();
19- $ this ->assertEquals ('customers/subscribers ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
19+ $ this ->assertEquals ('customers/subscribers ' , $ this ->getLastRequestPath ());
2020 }
2121}
You can’t perform that action at this time.
0 commit comments