File tree Expand file tree Collapse file tree 6 files changed +20
-23
lines changed Expand file tree Collapse file tree 6 files changed +20
-23
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,11 @@ jobs:
26
26
tools : composer:v2
27
27
coverage : none
28
28
29
- - name : Install dependencies
30
- uses : nick-invision/retry@v1
31
- with :
32
- timeout_minutes : 5
33
- max_attempts : 5
34
- command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
29
+ - name : Install Composer dependencies
30
+ run : |
31
+ if [[ "${{ matrix.php }}" = "8.3" ]]; then sed -i -e 's/\("orchestra\/testbench":[[:space:]]*\)".*"/\1"^9.0"/' composer.json; fi
32
+ composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
35
33
36
34
- name : Execute tests
37
35
continue-on-error : ${{ matrix.php > 8 }}
38
- run : vendor/bin/phpunit --verbose
36
+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 1
1
.idea
2
+ .phpunit.cache
2
3
/vendor
3
4
composer.lock
4
5
.php-cs-fixer.cache
Original file line number Diff line number Diff line change 20
20
},
21
21
"require-dev" : {
22
22
"mockery/mockery" : " ^0.9|^1.3" ,
23
- "orchestra/testbench" : " ^5.19|^6.18|^7.0|^8.0" ,
24
- "phpunit/phpunit" : " ^8.5|^9.1|^10.0"
23
+ "orchestra/testbench" : " ^5.19|^6.18|^7.0|^8.0|^9.0 " ,
24
+ "phpunit/phpunit" : " ^8.5|^9.1|^10.0|^11.0 "
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" backupStaticAttributes = " false "
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false"
3
3
beStrictAboutTestsThatDoNotTestAnything =" false" bootstrap =" vendor/autoload.php" colors =" true"
4
- convertErrorsToExceptions =" true" convertNoticesToExceptions =" true" convertWarningsToExceptions =" true"
5
- processIsolation =" false" stopOnError =" false" stopOnFailure =" false" verbose =" true"
6
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
7
- <coverage processUncoveredFiles =" true" >
8
- <include >
9
- <directory suffix =" .php" >./src</directory >
10
- </include >
11
- </coverage >
4
+ processIsolation =" false" stopOnError =" false" stopOnFailure =" false"
5
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory =" .phpunit.cache"
6
+ backupStaticProperties =" false" >
12
7
<testsuites >
13
8
<testsuite name =" Package Test Suite" >
14
9
<directory suffix =" Test.php" >./tests</directory >
20
15
<env name =" APP_DEBUG" value =" true" />
21
16
<env name =" SESSION_DRIVER" value =" file" />
22
17
</php >
18
+ <source >
19
+ <include >
20
+ <directory suffix =" .php" >./src</directory >
21
+ </include >
22
+ </source >
23
23
</phpunit >
Original file line number Diff line number Diff line change 3
3
namespace Recca0120 \LaravelParallel \Tests \Console ;
4
4
5
5
use Illuminate \Foundation \Auth \User ;
6
- use Illuminate \Foundation \Testing \RefreshDatabase ;
7
- use Illuminate \Foundation \Testing \WithFaker ;
8
6
use Illuminate \Http \Response ;
9
7
use Recca0120 \LaravelParallel \Console \ParallelCommand ;
10
8
use Recca0120 \LaravelParallel \ResponseIdentifier ;
14
12
15
13
class ParallelCommandTest extends TestCase
16
14
{
17
- use RefreshDatabase;
18
- use WithFaker;
19
-
20
15
/**
21
16
* @var User
22
17
*/
Original file line number Diff line number Diff line change 2
2
3
3
namespace Recca0120 \LaravelParallel \Tests \Fixtures ;
4
4
5
+ use Illuminate \Database \Schema \Builder ;
5
6
use Illuminate \Support \Facades \Hash ;
6
7
7
8
trait SetupDatabase
@@ -18,8 +19,10 @@ protected function databaseSetUp($app)
18
19
19
20
$ app ['config ' ]->set ('auth.providers.users.model ' , User::class);
20
21
22
+ /** @var Builder $schema */
21
23
$ schema = $ app ['db ' ]->getSchemaBuilder ();
22
24
25
+ $ schema ->dropIfExists ('users ' );
23
26
$ schema ->create ('users ' , function ($ table ) {
24
27
$ table ->increments ('id ' );
25
28
$ table ->string ('email ' )->unique ();
You can’t perform that action at this time.
0 commit comments