File tree 7 files changed +25
-22
lines changed
src/Jenssegers/Mongodb/Relations
7 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -56,18 +56,22 @@ jobs:
56
56
env :
57
57
DEBUG : ${{secrets.DEBUG}}
58
58
- name : Download Composer cache dependencies from cache
59
+ if : (!startsWith(matrix.php, '7.2'))
59
60
id : composer-cache
60
61
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
61
62
- name : Cache Composer dependencies
63
+ if : (!startsWith(matrix.php, '7.2'))
62
64
uses : actions/cache@v1
63
65
with :
64
66
path : ${{ steps.composer-cache.outputs.dir }}
65
67
key : ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
66
68
restore-keys : ${{ matrix.os }}-composer-
67
69
- name : Install dependencies
70
+ if : (!startsWith(matrix.php, '7.2'))
68
71
run : |
69
72
composer install --no-interaction
70
73
- name : Run tests
74
+ if : (!startsWith(matrix.php, '7.2'))
71
75
run : |
72
76
./vendor/bin/phpunit --coverage-clover coverage.xml
73
77
env :
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
3
3
4
4
## [ Unreleased]
5
5
6
+ ### Added
7
+ - Laravel 8 support by [ @divine ] ( https://github.com/divine ) .
8
+
9
+ ### Changed
10
+ - Updated versions of all dependencies by [ @divine ] ( https://github.com/divine ) .
11
+
6
12
## [ 3.7.0] - 2020-09-18
7
13
8
14
### Added
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ Make sure you have the MongoDB PHP driver installed. You can find installation i
68
68
5.8.x | 3.5.x
69
69
6.x | 3.6.x
70
70
7.x | 3.7.x
71
+ 8.x | 3.8.x
71
72
72
73
Install the package via Composer:
73
74
Original file line number Diff line number Diff line change 19
19
],
20
20
"license" : " MIT" ,
21
21
"require" : {
22
- "illuminate/support" : " ^7 .0" ,
23
- "illuminate/container" : " ^7 .0" ,
24
- "illuminate/database" : " ^7 .0" ,
25
- "illuminate/events" : " ^7 .0" ,
22
+ "illuminate/support" : " ^8 .0" ,
23
+ "illuminate/container" : " ^8 .0" ,
24
+ "illuminate/database" : " ^8 .0" ,
25
+ "illuminate/events" : " ^8 .0" ,
26
26
"mongodb/mongodb" : " ^1.6"
27
27
},
28
28
"require-dev" : {
29
- "phpunit/phpunit" : " ^8.4|^ 9.0" ,
30
- "orchestra/testbench" : " ^5 .0" ,
29
+ "phpunit/phpunit" : " ^9.0" ,
30
+ "orchestra/testbench" : " ^6 .0" ,
31
31
"mockery/mockery" : " ^1.3.1" ,
32
32
"doctrine/dbal" : " ^2.6"
33
33
},
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit backupGlobals =" false"
3
- backupStaticAttributes =" false"
4
- bootstrap =" vendor/autoload.php"
5
- colors =" true"
6
- convertErrorsToExceptions =" true"
7
- convertNoticesToExceptions =" true"
8
- convertWarningsToExceptions =" true"
9
- processIsolation =" false"
10
- stopOnFailure =" false" >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" backupStaticAttributes =" false" bootstrap =" vendor/autoload.php" colors =" true" convertErrorsToExceptions =" true" convertNoticesToExceptions =" true" convertWarningsToExceptions =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
3
+ <coverage processUncoveredFiles =" true" >
4
+ <include >
5
+ <directory suffix =" .php" >./src</directory >
6
+ </include >
7
+ </coverage >
11
8
<testsuites >
12
9
<testsuite name =" all" >
13
10
<directory >tests/</directory >
37
34
<file >tests/ValidationTest.php</file >
38
35
</testsuite >
39
36
</testsuites >
40
- <filter >
41
- <whitelist processUncoveredFilesFromWhitelist =" true" >
42
- <directory suffix =" .php" >./src</directory >
43
- </whitelist >
44
- </filter >
45
37
<php >
46
38
<env name =" MONGO_HOST" value =" mongodb" />
47
39
<env name =" MONGO_DATABASE" value =" unittest" />
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ protected function getResultsByType($type)
31
31
32
32
$ query = $ instance ->newQuery ();
33
33
34
- return $ query ->whereIn ($ key , $ this ->gatherKeysByType ($ type ))->get ();
34
+ return $ query ->whereIn ($ key , $ this ->gatherKeysByType ($ type, $ instance -> getKeyType () ))->get ();
35
35
}
36
36
37
37
/**
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function testQueueJobLifeCycle(): void
37
37
'job ' => 'test ' ,
38
38
'maxTries ' => null ,
39
39
'maxExceptions ' => null ,
40
- 'delay ' => null ,
40
+ 'backoff ' => null ,
41
41
'timeout ' => null ,
42
42
'data ' => ['action ' => 'QueueJobLifeCycle ' ],
43
43
]), $ job ->getRawBody ());
You can’t perform that action at this time.
0 commit comments