Skip to content

Commit afdb879

Browse files
committed
composer: added Laravel 9 support
1 parent a7f8e5e commit afdb879

File tree

10 files changed

+14
-36
lines changed

10 files changed

+14
-36
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php: [ 7.3, 7.4, 8.0 ]
19-
laravel: [ '^6.10', '^7.0', '^8.0' ]
19+
laravel: [ '^6.10', '^8.0', '^9.0' ]
2020
dependency-version: [prefer-lowest, prefer-stable]
2121

2222
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
],
1616
"require": {
1717
"php": "^7.3 || ^8.0",
18-
"illuminate/support": "^6.10 || ^7.0 || ^8.0",
19-
"illuminate/http": "^6.10 || ^7.0 || ^8.0"
18+
"illuminate/support": "^6.10 || ^8.0 || ^9.0",
19+
"illuminate/http": "^6.10 || ^8.0 || ^9.0"
2020
},
2121
"require-dev": {
22-
"orchestra/testbench": "^4.17 || ^5.19 || ^6.19",
23-
"phpunit/phpunit": "^9.3",
24-
"mockery/mockery": "^1.3"
22+
"orchestra/testbench": "^4.18 || ^6.24 || ^7.3",
23+
"phpunit/phpunit": "^9.5",
24+
"mockery/mockery": "^1.4"
2525
},
2626
"autoload": {
2727
"psr-4": {

tests/Driver/BlueimpHandlerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ public function testUploadWhenFileParameterIsEmpty()
109109

110110
public function testUploadWhenFileParameterIsInvalid()
111111
{
112-
$file = Mockery::mock(UploadedFile::class)
113-
->makePartial();
114-
$file->shouldReceive('isValid')
115-
->andReturn(false);
112+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
116113

117114
$request = Request::create('', Request::METHOD_POST, [], [], [
118115
'file' => $file,

tests/Driver/DropzoneHandlerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ public function testUploadWhenFileParameterIsEmpty()
8080

8181
public function testUploadWhenFileParameterIsInvalid()
8282
{
83-
$file = Mockery::mock(UploadedFile::class)->makePartial();
84-
$file->shouldReceive('isValid')
85-
->andReturn(false);
83+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
8684

8785
$request = Request::create('', Request::METHOD_POST, [], [], [
8886
'file' => $file,

tests/Driver/FlowJsHandlerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ public function testUploadWhenFileParameterIsEmpty()
119119

120120
public function testUploadWhenFileParameterIsInvalid()
121121
{
122-
$file = Mockery::mock(UploadedFile::class)
123-
->makePartial();
124-
$file->shouldReceive('isValid')
125-
->andReturn(false);
122+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
126123

127124
$request = Request::create('', Request::METHOD_POST, [], [], [
128125
'file' => $file,

tests/Driver/MonolithHandlerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ public function testUploadWhenFileParameterIsEmpty()
7878

7979
public function testUploadWhenFileParameterIsInvalid()
8080
{
81-
$file = Mockery::mock(UploadedFile::class)->makePartial();
82-
$file->shouldReceive('isValid')
83-
->andReturn(false);
81+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
8482

8583
$request = Request::create('', Request::METHOD_POST, [], [], [
8684
'file' => $file,

tests/Driver/NgFileHandlerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ public function testUploadWhenFileParameterIsEmpty()
106106

107107
public function testUploadWhenFileParameterIsInvalid()
108108
{
109-
$file = Mockery::mock(UploadedFile::class)
110-
->makePartial();
111-
$file->shouldReceive('isValid')
112-
->andReturn(false);
109+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
113110

114111
$request = Request::create('', Request::METHOD_POST, [], [], [
115112
'file' => $file,

tests/Driver/PluploadHandlerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ public function testUploadWhenFileParameterIsEmpty()
8181

8282
public function testUploadWhenFileParameterIsInvalid()
8383
{
84-
$file = Mockery::mock(UploadedFile::class)
85-
->makePartial();
86-
$file->shouldReceive('isValid')
87-
->andReturn(false);
84+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
8885

8986
$request = Request::create('', Request::METHOD_POST, [], [], [
9087
'file' => $file,

tests/Driver/ResumableJsHandlerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ public function testUploadWhenFileParameterIsEmpty()
121121

122122
public function testUploadWhenFileParameterIsInvalid()
123123
{
124-
$file = Mockery::mock(UploadedFile::class)
125-
->makePartial();
126-
$file->shouldReceive('isValid')
127-
->andReturn(false);
124+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
128125

129126
$request = Request::create('', Request::METHOD_POST, [], [], [
130127
'file' => $file,

tests/Driver/SimpleUploaderJsHandlerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ public function testUploadWhenFileParameterIsEmpty()
119119

120120
public function testUploadWhenFileParameterIsInvalid()
121121
{
122-
$file = Mockery::mock(UploadedFile::class)
123-
->makePartial();
124-
$file->shouldReceive('isValid')
125-
->andReturn(false);
122+
$file = new UploadedFile('', '', null, \UPLOAD_ERR_INI_SIZE);
126123

127124
$request = Request::create('', Request::METHOD_POST, [], [], [
128125
'file' => $file,

0 commit comments

Comments
 (0)