Commit 7192407d authored by Guy Thouret's avatar Guy Thouret

(chore) Add spec test for boost campaign stats - #631

1 merge request!235WIP: Boost Campaigns (&24)
Pipeline #86164677 running with stages
<?php
/**
* Stats
* @author edgebal
*/
namespace Minds\Core\Boost\Campaigns;
......
......@@ -2,9 +2,9 @@
namespace Spec\Minds\Core\Boost\Campaigns;
use Minds\Core\Boost\Campaigns\Campaign;
use Minds\Core\Boost\Campaigns\Stats;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class StatsSpec extends ObjectBehavior
{
......@@ -12,4 +12,11 @@ class StatsSpec extends ObjectBehavior
{
$this->shouldHaveType(Stats::class);
}
public function it_should_get_stats(Campaign $campaign)
{
$this->get($campaign)->shouldReturn([
'cannot_fulfill_daily' => false,
]);
}
}
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