Skip to content

Commit 1dc5920

Browse files
committed
feat: add support Laravel 11
1 parent 69c3af6 commit 1dc5920

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: ['8.1', '8.2']
15-
laravel: ['^9.1', '^10.0']
14+
php: ['8.2', '8.3']
15+
laravel: ['^10.0', '^11.0']
1616

1717
steps:
1818
- name: Checkout the repo

composer.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^8.1",
24-
"laravel/framework": "^9.3 || ^10.0"
23+
"php": "^8.2",
24+
"illuminate/contracts": "^10.0|^11.0",
25+
"illuminate/console": "^10.0|^11.0",
26+
"illuminate/database": "^10.0|^11.0",
27+
"illuminate/support": "^10.0|^11.0"
2528
},
2629
"require-dev": {
27-
"orchestra/testbench": "^7.7 || ^8.0",
30+
"orchestra/testbench": "^8.0|^9.0",
2831
"spatie/fork": "^1.1"
2932
},
3033
"autoload": {

tests/Unit/Processors/MutexMigrationProcessorTest.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ protected function setUp(): void
2121

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

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

3231
public function testStart(): void
3332
{
34-
$this->components->expects($this->exactly(2))->method('info');
33+
$this->components->expects($this->exactly(2))->method('__call');
3534

3635
$this->relay->expects($this->once())
3736
->method('acquireLock')
38-
->will($this->returnValue(true));
37+
->willReturn(true);
3938

4039
$this->getProcessorInstance()->start();
4140
}
4241

4342
public function testStartThrowsSpecificException(): void
4443
{
45-
$this->components->expects($this->once())->method('info');
44+
$this->components->expects($this->once())->method('__call');
4645

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

5655
public function testTerminate(): void
5756
{
58-
$this->components->expects($this->once())->method('info');
57+
$this->components->expects($this->once())->method('__call');
5958

6059
$this->relay->expects($this->once())
6160
->method('releaseLock')
62-
->will($this->returnValue(true));
61+
->willReturn(true);
6362

6463
$this->getProcessorInstance()->terminate();
6564
}

0 commit comments

Comments
 (0)