Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
127
Issues
127
List
Boards
Labels
Service Desk
Milestones
Merge Requests
27
Merge Requests
27
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
dd117ff0
Commit
dd117ff0
authored
5 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): test for summonsing
parent
e257397f
master
epic/ReportingAndModeration
1 merge request
!100
Epic/reporting and moderation
Pipeline
#62750190
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
SummonDelegateSpec.php
Spec/Core/Reports/Appeals/Delegates/SummonDelegateSpec.php
+9
-2
No files found.
Spec/Core/Reports/Appeals/Delegates/SummonDelegateSpec.php
View file @
dd117ff0
...
...
@@ -6,6 +6,7 @@ use Minds\Core\Queue\Interfaces\QueueClient;
use
Minds\Core\Queue\Runners\ReportsAppealSummon
;
use
Minds\Core\Reports\Appeals\Appeal
;
use
Minds\Core\Reports\Appeals\Delegates\SummonDelegate
;
use
Minds\Core\Reports\Report
;
use
PhpSpec\ObjectBehavior
;
use
Prophecy\Argument
;
...
...
@@ -27,14 +28,20 @@ class SummonDelegateSpec extends ObjectBehavior
$this
->
shouldHaveType
(
SummonDelegate
::
class
);
}
function
it_should_queue_on_appeal
(
Appeal
$appeal
)
function
it_should_queue_on_appeal
(
Report
$report
)
{
$report
=
new
Report
();
$report
->
setReasonCode
(
2
);
$appeal
=
new
Appeal
();
$appeal
->
setReport
(
$report
);
$this
->
queue
->
setQueue
(
'ReportsAppealSummon'
)
->
shouldBeCalled
()
->
willReturn
(
$this
->
queue
);
$this
->
queue
->
send
([
'appeal'
=>
$appeal
,
'appeal'
=>
serialize
(
$appeal
)
,
'cohort'
=>
null
,
])
->
shouldBeCalled
();
...
...
This diff is collapsed.
Click to expand it.
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