Commit e0140852 authored by Mark Harding's avatar Mark Harding

(revert): d14ac69a -> also includes revoked and completed"

This reverts commit d14ac69a.
parent d14ac69a
No related merge requests found
Pipeline #74537126 waiting for manual action with stages
in 9 minutes and 2 seconds
......@@ -149,9 +149,10 @@ class Manager
{
$existingBoost = $this->getList([
'useElastic' => true,
'state' => 'review',
'type' => $boost->getType(),
'entity_guid' => $boost->getEntityGuid(),
'limit' => 1,
'limit' => 1
]);
return $existingBoost->count() > 0;
......
......@@ -273,7 +273,7 @@ class ManagerSpec extends ObjectBehavior
{
$this->elasticRepository->getList([
'useElastic' => true,
'state' => null,
'state' => 'review',
'type' => 'newsfeed',
'entity_guid' => '123',
'limit' => 1,
......@@ -282,6 +282,10 @@ class ManagerSpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(new Response([$boost], ''));
$this->repository->getList(Argument::any())
->shouldBeCalled()
->willReturn(new Response([$boost]));
$boost->getType()
->shouldBeCalled()
->willReturn('newsfeed');
......
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