Skip to content

Commit

Permalink
Merge pull request #5 from netsells/feature/laravel-11-support
Browse files Browse the repository at this point in the history
feat: add support Laravel 11
  • Loading branch information
bensherred authored Mar 28, 2024
2 parents 69c3af6 + 1dc5920 commit e1fe03a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2']
laravel: ['^9.1', '^10.0']
php: ['8.2', '8.3']
laravel: ['^10.0', '^11.0']

steps:
- name: Checkout the repo
Expand Down
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
}
],
"require": {
"php": "^8.1",
"laravel/framework": "^9.3 || ^10.0"
"php": "^8.2",
"illuminate/contracts": "^10.0|^11.0",
"illuminate/console": "^10.0|^11.0",
"illuminate/database": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0"
},
"require-dev": {
"orchestra/testbench": "^7.7 || ^8.0",
"orchestra/testbench": "^8.0|^9.0",
"spatie/fork": "^1.1"
},
"autoload": {
Expand Down
11 changes: 5 additions & 6 deletions tests/Unit/Processors/MutexMigrationProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ protected function setUp(): void

$this->components = $this->getMockBuilder(Factory::class)
->disableOriginalConstructor()
->addMethods(['info', 'warn'])
->getMock();

$this->relay = $this->getMockBuilder(MutexRelay::class)
Expand All @@ -31,18 +30,18 @@ protected function setUp(): void

public function testStart(): void
{
$this->components->expects($this->exactly(2))->method('info');
$this->components->expects($this->exactly(2))->method('__call');

$this->relay->expects($this->once())
->method('acquireLock')
->will($this->returnValue(true));
->willReturn(true);

$this->getProcessorInstance()->start();
}

public function testStartThrowsSpecificException(): void
{
$this->components->expects($this->once())->method('info');
$this->components->expects($this->once())->method('__call');

$this->relay->expects($this->once())
->method('acquireLock')
Expand All @@ -55,11 +54,11 @@ public function testStartThrowsSpecificException(): void

public function testTerminate(): void
{
$this->components->expects($this->once())->method('info');
$this->components->expects($this->once())->method('__call');

$this->relay->expects($this->once())
->method('releaseLock')
->will($this->returnValue(true));
->willReturn(true);

$this->getProcessorInstance()->terminate();
}
Expand Down

0 comments on commit e1fe03a

Please sign in to comment.