Skip to content

Commit d66c58d

Browse files
Merge pull request #5 from esign/support-laravel-13
Support Laravel 13
2 parents e6b16b3 + f2a3378 commit d66c58d

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@ jobs:
1515
fail-fast: true
1616
matrix:
1717
os: [ubuntu-latest]
18-
php: [8.4, 8.3, 8.2]
19-
laravel: [12.*, 11.*]
18+
php: [8.5, 8.4, 8.3]
19+
laravel: [13.*, 12.*, 11.*]
2020
stability: [prefer-lowest, prefer-stable]
2121
include:
22+
- laravel: 13.*
23+
testbench: 11.*
2224
- laravel: 12.*
2325
testbench: 10.*
2426
- laravel: 11.*
2527
testbench: ^9.9
28+
exclude:
29+
- laravel: 13.*
30+
php: 8.2
2631

2732
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2833

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
],
2525
"require": {
2626
"php": "^8.1",
27-
"illuminate/support": "^11.0|^12.0",
28-
"illuminate/database": "^11.0|^12.0",
29-
"illuminate/http": "^11.0|^12.0",
30-
"illuminate/contracts": "^11.0|^12.0",
27+
"illuminate/support": "^11.40|^12.0|^13.0",
28+
"illuminate/database": "^11.40|^12.0|^13.0",
29+
"illuminate/http": "^11.40|^12.0|^13.0",
30+
"illuminate/contracts": "^11.40|^12.0|^13.0",
3131
"shopify/shopify-app-php": "^0.1",
3232
"spatie/laravel-data": "^4.0"
3333
},
3434
"require-dev": {
35-
"orchestra/testbench": "^10.0",
36-
"phpunit/phpunit": "^11.0",
35+
"orchestra/testbench": "^10.0|^11.0",
36+
"phpunit/phpunit": "^11.5.3",
3737
"laravel/pint": "^1.13",
3838
"mockery/mockery": "^1.6"
3939
},

tests/Unit/Auth/TokenRefreshServiceTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)