@@ -108,7 +108,6 @@ public function it_successfully_refreshes_token_and_updates_shop()
108108 // Inject mock using reflection
109109 $ reflection = new \ReflectionClass ($ this ->service );
110110 $ property = $ reflection ->getProperty ('shopifyApp ' );
111- $ property ->setAccessible (true );
112111 $ property ->setValue ($ this ->service , $ mockShopifyApp );
113112
114113 $ result = $ this ->service ->refreshAccessToken ($ shop );
@@ -150,7 +149,6 @@ public function it_returns_true_when_token_is_still_valid()
150149
151150 $ reflection = new \ReflectionClass ($ this ->service );
152151 $ property = $ reflection ->getProperty ('shopifyApp ' );
153- $ property ->setAccessible (true );
154152 $ property ->setValue ($ this ->service , $ mockShopifyApp );
155153
156154 $ result = $ this ->service ->refreshAccessToken ($ shop );
@@ -191,7 +189,6 @@ public function it_clears_tokens_on_invalid_grant_error()
191189
192190 $ reflection = new \ReflectionClass ($ this ->service );
193191 $ property = $ reflection ->getProperty ('shopifyApp ' );
194- $ property ->setAccessible (true );
195192 $ property ->setValue ($ this ->service , $ mockShopifyApp );
196193
197194 $ result = $ this ->service ->refreshAccessToken ($ shop );
@@ -224,7 +221,6 @@ public function it_handles_token_refresh_exception()
224221
225222 $ reflection = new \ReflectionClass ($ this ->service );
226223 $ property = $ reflection ->getProperty ('shopifyApp ' );
227- $ property ->setAccessible (true );
228224 $ property ->setValue ($ this ->service , $ mockShopifyApp );
229225
230226 $ result = $ this ->service ->refreshAccessToken ($ shop );
0 commit comments