Skip to content

Commit

Permalink
chore: add support for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Jan 10, 2025
1 parent 1fe72cc commit 31c3b8e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
composer.lock
phpunit.xml
.phpunit.result.cache
.phpunit.cache
.php_cs.cache
.php-cs-fixer.cache
.idea
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
}
],
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"illuminate/contracts": "^10.0",
"illuminate/http": "^10.0",
"illuminate/routing": "^10.0",
"illuminate/support": "^10.0"
"php": "^8.2",
"guzzlehttp/guzzle": "^7.8",
"illuminate/contracts": "^10.0|^11.0",
"illuminate/http": "^10.0|^11.0",
"illuminate/routing": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0"
},
"require-dev": {
"laravel/pint": "^1.10",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^1.23"
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
38 changes: 17 additions & 21 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<php>
<env name="SHOPIFY_ACCESS_TOKEN" value="shopify.access_token.goes.here"/>
<env name="SHOPIFY_DOMAIN" value="shopify-domain.goes.here"/>
<env name="SHOPIFY_API_VERSION" value="2019-07"/>
<env name="SHOPIFY_WEBHOOK_SECRET" value="secret"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<php>
<env name="SHOPIFY_ACCESS_TOKEN" value="shopify.access_token.goes.here"/>
<env name="SHOPIFY_DOMAIN" value="shopify-domain.goes.here"/>
<env name="SHOPIFY_API_VERSION" value="2019-07"/>
<env name="SHOPIFY_WEBHOOK_SECRET" value="secret"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

0 comments on commit 31c3b8e

Please sign in to comment.