1 | <?php |
||
21 | final class ShippingMethodApiTest extends JsonApiTestCase |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private static $authorizedHeaderWithAccept = [ |
||
27 | 'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ', |
||
28 | 'ACCEPT' => 'application/json', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * @test |
||
33 | */ |
||
34 | public function it_does_not_allow_to_show_shipping_method_when_it_does_not_exist() |
||
43 | |||
44 | /** |
||
45 | * @test |
||
46 | */ |
||
47 | public function it_allows_showing_shipping_method() |
||
59 | |||
60 | /** |
||
61 | * @param ShippingMethodInterface $shippingMethod |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | private function getShippingMethodUrl(ShippingMethodInterface $shippingMethod) |
||
69 | } |
||
70 |
Late static binding only has effect in subclasses. A
final
class cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::
withself::
.To learn more about late static binding, please refer to the PHP core documentation.