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
133
Issues
133
List
Boards
Labels
Service Desk
Milestones
Merge Requests
28
Merge Requests
28
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
0cd7265b
Commit
0cd7265b
authored
37 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): failing spec tests
parent
8b35aa62
epic/ReportingAndModeration
1 merge request
!100
Epic/reporting and moderation
Pipeline
#61880019
passed with stages
in 5 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
ManagerSpec.php
Spec/Core/Reports/Jury/ManagerSpec.php
+10
-2
ManagerSpec.php
Spec/Core/Reports/Verdict/ManagerSpec.php
+2
-2
No files found.
Spec/Core/Reports/Jury/ManagerSpec.php
View file @
0cd7265b
...
...
@@ -6,6 +6,7 @@ use Minds\Core\Reports\Jury\Manager;
use
Minds\Core\Reports\Verdict\Manager
as
VerdictManager
;
use
Minds\Core\Reports\Jury\Repository
;
use
Minds\Core\Reports\Jury\Decision
;
use
Minds\Core\Reports\Summons\Manager
as
SummonsManager
;
use
Minds\Core\Reports\Report
;
use
Minds\Core\Entities\Resolver
as
EntitiesResolver
;
use
PhpSpec\ObjectBehavior
;
...
...
@@ -16,13 +17,20 @@ class ManagerSpec extends ObjectBehavior
private
$repository
;
private
$entitiesResolver
;
private
$verdictManager
;
private
$summonsManager
;
function
let
(
Repository
$repository
,
EntitiesResolver
$entitiesResolver
,
VerdictManager
$verdictManager
)
function
let
(
Repository
$repository
,
EntitiesResolver
$entitiesResolver
,
VerdictManager
$verdictManager
,
SummonsManager
$summonsManager
)
{
$this
->
beConstructedWith
(
$repository
,
$entitiesResolver
,
$verdictManager
);
$this
->
beConstructedWith
(
$repository
,
$entitiesResolver
,
$verdictManager
,
$summonsManager
);
$this
->
repository
=
$repository
;
$this
->
entitiesResolver
=
$entitiesResolver
;
$this
->
verdictManager
=
$verdictManager
;
$this
->
summonsManager
=
$summonsManager
;
}
function
it_is_initializable
()
...
...
This diff is collapsed.
Click to expand it.
Spec/Core/Reports/Verdict/ManagerSpec.php
View file @
0cd7265b
...
...
@@ -232,9 +232,9 @@ class ManagerSpec extends ObjectBehavior
->
setAction
(
'2.2'
),
]);
$report
->
getEntity
Guid
()
$report
->
getEntity
Urn
()
->
shouldBeCalled
()
->
willReturn
(
123
);
->
willReturn
(
'urn:activity:123'
);
$this
->
repository
->
add
(
Argument
::
type
(
Verdict
::
class
))
->
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