Skip to content

Commit

Permalink
Merge pull request #44 from aurimasbutkus/feat/laravel-11-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Daursu authored Jul 4, 2024
2 parents 4ebfa5c + 44a17cb commit 40e312b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/laravel-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:
fail-fast: true
matrix:
php: [ 8.0, 8.1, 8.2, 8.3 ]
laravel: [ 8, 9, 10 ]
laravel: [ 8, 9, 10, 11 ]
exclude:
- php: 8.0
laravel: 10
- php: 8.0
laravel: 11
- php: 8.1
laravel: 11

services:
mysql:
Expand Down Expand Up @@ -75,4 +79,4 @@ jobs:
run: vendor/bin/phpunit --testsuite=Integration
env:
DB_PORT: ${{ job.services.mysql.ports[3306] }}
DB_USERNAME: root
DB_USERNAME: root
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "Zero downtime migrations with Laravel and percona toolkit",
"require": {
"php": ">=8.0",
"illuminate/database": "^8.0|^9.0|^10.0",
"illuminate/support": "^8.0|^9.0|^10.0",
"symfony/console": "^5.0|^6.0",
"symfony/process": "^5.0|^6.0"
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"symfony/console": "^5.0|^6.0|^7.0",
"symfony/process": "^5.0|^6.0|^7.0"
},
"require-dev": {
"orchestra/testbench": "6.*|7.*|8.*",
"orchestra/testbench": "6.*|7.*|8.*|9.*",
"phpunit/phpunit": "^8.4|^9.5|^10.0",
"squizlabs/php_codesniffer": "^3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/Unit/GhostConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function () {
'password' => $password,
],
])
->setMethods(['getProcess', 'isPretending'])
->onlyMethods(['getProcess', 'isPretending'])
->getMock();

$connection->method('getProcess')->willReturn($process);
Expand All @@ -46,7 +46,7 @@ private function getMockedProcess()
{
return $this->getMockBuilder(Process::class)
->setConstructorArgs([[]])
->setMethods(['stop', 'mustRun'])
->onlyMethods(['stop', 'mustRun'])
->getMock();
}
}
6 changes: 3 additions & 3 deletions tests/Unit/PtOnlineSchemaChangeConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function () {
'password' => $password,
],
])
->setMethods(['getProcess', 'isPretending'])
->onlyMethods(['getProcess', 'isPretending'])
->getMock();

$connection->method('getProcess')->willReturn($process);
Expand All @@ -183,7 +183,7 @@ private function getMockedProcess()
{
return $this->getMockBuilder(Process::class)
->setConstructorArgs([[]])
->setMethods(['stop', 'mustRun'])
->onlyMethods(['stop', 'mustRun'])
->getMock();
}

Expand All @@ -197,7 +197,7 @@ function () {
'',
$config,
])
->setMethods(['runProcess', 'isPretending'])
->onlyMethods(['runProcess', 'isPretending'])
->getMock();
}
}

0 comments on commit 40e312b

Please sign in to comment.