Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
e8b6e756
Commit
e8b6e756
authored
Oct 17, 2019
by
Denisson Leal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:denissonleal/laravel-mongodb into hotfix/multiconnection-queue
parents
59546dcf
f826130f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
README.md
README.md
+1
-0
MongoFailedJobProvider.php
...enssegers/Mongodb/Queue/Failed/MongoFailedJobProvider.php
+4
-0
QueueTest.php
tests/QueueTest.php
+8
-0
No files found.
README.md
View file @
e8b6e756
...
...
@@ -45,6 +45,7 @@ composer require jenssegers/mongodb
5.
6.x | 3.4.x
5.
7.x | 3.4.x
5.
8.x | 3.5.x
6.
0.x | 3.6.x
And add the service provider in
`config/app.php`
:
...
...
src/Jenssegers/Mongodb/Queue/Failed/MongoFailedJobProvider.php
View file @
e8b6e756
...
...
@@ -46,6 +46,10 @@ class MongoFailedJobProvider extends DatabaseFailedJobProvider
{
$job
=
$this
->
getTable
()
->
find
(
$id
);
if
(
!
$job
)
{
return
;
}
$job
[
'id'
]
=
(
string
)
$job
[
'_id'
];
return
(
object
)
$job
;
...
...
tests/QueueTest.php
View file @
e8b6e756
...
...
@@ -64,4 +64,12 @@ class QueueTest extends TestCase
$this
->
assertInstanceOf
(
MongoFailedJobProvider
::
class
,
$provider
);
}
public
function
testFindFailJobNull
()
:
void
{
Config
::
set
(
'queue.failed.database'
,
'mongodb'
);
$provider
=
app
(
'queue.failer'
);
$this
->
assertNull
(
$provider
->
find
(
1
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment