Commit 0cd7265b authored by Mark Harding's avatar Mark Harding

(fix): failing spec tests

1 merge request!100Epic/reporting and moderation
Pipeline #61880019 passed with stages
in 5 minutes and 13 seconds
......@@ -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()
......
......@@ -232,9 +232,9 @@ class ManagerSpec extends ObjectBehavior
->setAction('2.2'),
]);
$report->getEntityGuid()
$report->getEntityUrn()
->shouldBeCalled()
->willReturn(123);
->willReturn('urn:activity:123');
$this->repository->add(Argument::type(Verdict::class))
->shouldBeCalled()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment