File tree Expand file tree Collapse file tree 5 files changed +32
-11
lines changed Expand file tree Collapse file tree 5 files changed +32
-11
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ filter:
10
10
build :
11
11
12
12
environment :
13
- php : ' 7.3 '
13
+ php : ' 7.4 '
14
14
15
15
dependencies :
16
16
before :
20
20
tests :
21
21
override :
22
22
-
23
- command : ' phpdbg -qrr vendor/bin/phpunit --coverage-clover build/logs/clover.xml'
23
+ command : ' vendor/bin/phpunit --coverage-clover build/logs/clover.xml'
24
24
coverage :
25
25
file : ' build/logs/clover.xml'
26
26
format : ' clover'
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ language: php
2
2
3
3
matrix :
4
4
exclude :
5
+ - env : LARAVEL_VERSION=^8.0 TESTBENCH_VERSION=^6.0
6
+ php : 7.2
7
+ - env : LARAVEL_VERSION=^8.0 TESTBENCH_VERSION=^6.0
8
+ php : 7.1
5
9
- env : LARAVEL_VERSION=^7.0 TESTBENCH_VERSION=^5.0
6
10
php : 7.1
7
11
- env : LARAVEL_VERSION=^6.0 TESTBENCH_VERSION=^4.0
19
23
- $HOME/.composer/cache
20
24
21
25
env :
26
+ - LARAVEL_VERSION=^8.0 TESTBENCH_VERSION=^6.0
22
27
- LARAVEL_VERSION=^7.0 TESTBENCH_VERSION=^5.0
23
28
- LARAVEL_VERSION=^6.0 TESTBENCH_VERSION=^4.0
24
29
- LARAVEL_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Guarantee database stickiness over the same user's consecutive requests.
5
5
## Requirements
6
6
7
7
- PHP: ^7.1
8
- - Laravel: ^5.8 || ^6.0 || ^7.0
8
+ - Laravel: ^5.8 || ^6.0 || ^7.0 || ^8.0
9
9
10
10
## Installing
11
11
Original file line number Diff line number Diff line change 21
21
}
22
22
},
23
23
"require" : {
24
- "php" : " ^7.1" ,
24
+ "php" : " ^7.1 || ^8.0 " ,
25
25
"ext-pdo" : " *" ,
26
- "illuminate/container" : " ^5.8 || ^6.0 || ^7.0 || ^8.0" ,
27
- "illuminate/contracts" : " ^5.8 || ^6.0 || ^7.0 || ^8.0" ,
28
- "illuminate/database" : " ^5.8 || ^6.0 || ^7.0 || ^8.0" ,
29
- "illuminate/queue" : " ^5.8 || ^6.0 || ^7.0 || ^8.0" ,
30
- "illuminate/support" : " ^5.8 || ^6.0 || ^7.0 || ^8.0"
26
+ "illuminate/container" : " ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 " ,
27
+ "illuminate/contracts" : " ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 " ,
28
+ "illuminate/database" : " ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 " ,
29
+ "illuminate/queue" : " ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 " ,
30
+ "illuminate/support" : " ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 "
31
31
},
32
32
"require-dev" : {
33
- "orchestra/testbench" : " ^5.0" ,
34
- "laravel/framework" : " ^7.0" ,
33
+ "orchestra/testbench" : " ^6.0" ,
35
34
"php-coveralls/php-coveralls" : " ^2.1" ,
36
35
"friendsofphp/php-cs-fixer" : " ^2.15" ,
37
36
"mockery/mockery" : " ^1.3"
Original file line number Diff line number Diff line change 2
2
3
3
namespace Mpyw \LaravelCachedDatabaseStickiness \Tests \Feature ;
4
4
5
+ use Illuminate \Contracts \Mail \Factory as MailerFactory ;
5
6
use Illuminate \Contracts \Mail \Mailer ;
6
7
use Illuminate \Http \Request ;
7
8
use Illuminate \Notifications \AnonymousNotifiable ;
@@ -178,6 +179,14 @@ public function testInitializationForNotifications(): void
178
179
{
179
180
$ this ->mock (Mailer::class)->shouldReceive ('send ' );
180
181
182
+ // [7.x] Multiple Mailers Per App
183
+ // https://github.com/laravel/framework/pull/31073
184
+ if (interface_exists (MailerFactory::class)) {
185
+ $ this ->mock (MailerFactory::class)
186
+ ->shouldReceive ('mailer ' )
187
+ ->andReturn ($ this ->app ->make (Mailer::class));
188
+ }
189
+
181
190
DB ::connection ();
182
191
183
192
$ this ->assertFalse ($ this ->getRecordsModifiedViaReflection ());
@@ -202,6 +211,14 @@ public function testInitializationForMailables(): void
202
211
{
203
212
$ this ->mock (Mailer::class)->shouldReceive ('send ' );
204
213
214
+ // [7.x] Multiple Mailers Per App
215
+ // https://github.com/laravel/framework/pull/31073
216
+ if (interface_exists (MailerFactory::class)) {
217
+ $ this ->mock (MailerFactory::class)
218
+ ->shouldReceive ('mailer ' )
219
+ ->andReturn ($ this ->app ->make (Mailer::class));
220
+ }
221
+
205
222
DB ::connection ();
206
223
207
224
$ this ->assertFalse ($ this ->getRecordsModifiedViaReflection ());
You can’t perform that action at this time.
0 commit comments