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()
23
23
24
24
$ this ->getApi ()->cart ($ id )->items ()->add ($ lineItem , CartItemsApi::INCLUDE_REDIRECT_URLS );
25
25
26
- $ this ->assertEquals ("carts/ $ id/items " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
26
+ $ this ->assertEquals ("carts/ $ id/items " , $ this ->getLastRequestPath ());
27
27
}
28
28
29
29
public function testCanDeleteCartLineItem ()
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function testCanGetCart()
14
14
$ id = 'aae435b7-e8a4-48f2-abcd-ad0675dc3123 ' ;
15
15
$ cart = $ this ->getApi ()->cart ($ id )->get ()->getCart ();
16
16
$ this ->assertEquals (1815 , $ cart ->cart_amount );
17
- $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
17
+ $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequestPath ());
18
18
}
19
19
20
20
public function testCanCreateACart ()
@@ -23,7 +23,7 @@ public function testCanCreateACart()
23
23
$ cart = new Cart ();
24
24
25
25
$ this ->getApi ()->carts ()->create ($ cart );
26
- $ this ->assertEquals ("carts " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
26
+ $ this ->assertEquals ("carts " , $ this ->getLastRequestPath ());
27
27
}
28
28
29
29
public function testCanUpdateCustomerIdForCart ()
@@ -33,7 +33,7 @@ public function testCanUpdateCustomerIdForCart()
33
33
34
34
$ this ->getApi ()->cart ($ id )->updateCustomerId (3 );
35
35
36
- $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequest ()-> getUri ()-> getPath ());
36
+ $ this ->assertEquals ("carts/ $ id " , $ this ->getLastRequestPath ());
37
37
$ this ->assertEquals (json_encode (['customer_id ' => 3 ]), $ this ->getLastRequest ()->getBody ());
38
38
$ this ->markTestIncomplete ();
39
39
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function testCanGetBrandMetafield(): void
22
22
23
23
$ response = $ this ->getApi ()->catalog ()->brand (158 )->metafield (8 )->get ();
24
24
$ 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 ());
26
26
}
27
27
28
28
public function testCanGetAllBrandMetafields (): void
@@ -32,6 +32,6 @@ public function testCanGetAllBrandMetafields(): void
32
32
$ response = $ this ->getApi ()->catalog ()->brand (11 )->metafields ()->getAll ();
33
33
$ this ->assertEquals (2 , $ response ->getPagination ()->total );
34
34
$ 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 ());
36
36
}
37
37
}
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ public function testCanSetApiUrlCorrectlyForGetAll(): void
38
38
$ this ->setReturnData ('catalog__categories__111__metafields__get_all.json ' );
39
39
$ this ->getApi ()->catalog ()->category (111 )->metafields ()->getAll ();
40
40
41
- $ this ->assertEquals ('catalog/categories/111/metafields ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
41
+ $ this ->assertEquals ('catalog/categories/111/metafields ' , $ this ->getLastRequestPath ());
42
42
}
43
43
44
44
public function testCanSetApiUrlCorrectlyForGet (): void
45
45
{
46
46
$ this ->setReturnData ('catalog__categories__158__metafields__8__get.json ' );
47
47
$ this ->getApi ()->catalog ()->category (158 )->metafield (8 )->get ();
48
48
49
- $ this ->assertEquals ('catalog/categories/158/metafields/8 ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
49
+ $ this ->assertEquals ('catalog/categories/158/metafields/8 ' , $ this ->getLastRequestPath ());
50
50
}
51
51
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public function testCanGetOrderMetafield(): void
11
11
$ this ->setReturnData ('orders__2__metafields__3__get.json ' );
12
12
13
13
$ 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 ());
15
15
}
16
16
17
17
public function testCanGetAllOrderMetafields (): void
@@ -20,6 +20,6 @@ public function testCanGetAllOrderMetafields(): void
20
20
21
21
$ response = $ this ->getApi ()->order (1 )->metafields ()->getAll ();
22
22
$ this ->assertEquals (2 , $ response ->getPagination ()->total );
23
- $ this ->assertEquals ('orders/1/metafields ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
23
+ $ this ->assertEquals ('orders/1/metafields ' , $ this ->getLastRequestPath ());
24
24
}
25
25
}
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ public function testCanGetSubscribers(): void
16
16
$ this ->setReturnData ('no-data-paginated.json ' );
17
17
18
18
$ this ->getApi ()->customers ()->subscribers ()->getAll ()->getSubscribers ();
19
- $ this ->assertEquals ('customers/subscribers ' , $ this ->getLastRequest ()-> getUri ()-> getPath ());
19
+ $ this ->assertEquals ('customers/subscribers ' , $ this ->getLastRequestPath ());
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments