Commit 334bc6d5 authored by Juan Manuel Solaro's avatar Juan Manuel Solaro

(fix) specs should resolve fine

1 merge request!294WIP: epic/post-scheduler
Pipeline #77113731 failed with stages
in 4 minutes and 33 seconds
......@@ -96,7 +96,7 @@ use Minds\Traits\MagicAttributes;
* @method Blog setAllowComments(bool $allowComments)
* @method bool getAllowComments()
* @method int getTimeSent()
* @method Blog setTimeSent(int $timeSent)
* @method Blog setTimeSent(int $time_sent)
*/
class Blog extends RepositoryEntity
{
......@@ -243,7 +243,7 @@ class Blog extends RepositoryEntity
protected $allowComments = true;
/** @var int */
protected $time_sent;
protected $timeSent;
/**
* Blog constructor.
......
......@@ -81,6 +81,10 @@ class CreateActivitySpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(1000);
$blog->getTimeCreated()
->shouldBeCalled()
->willReturn(9999);
$this->db->getRow("activity:entitylink:9999")
->shouldBeCalled()
->willReturn([]);
......@@ -106,6 +110,10 @@ class CreateActivitySpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(9999);
$blog->getTimeCreated()
->shouldBeCalled()
->willReturn(9999);
$this->db->getRow("activity:entitylink:9999")
->shouldBeCalled()
->willReturn(['activity1']);
......
......@@ -153,6 +153,10 @@ class ManagerSpec extends ObjectBehavior
$blog->getSubtype()
->willReturn('blog');
$blog->getTimeCreated()
->shouldBeCalled()
->willReturn(9999);
$blog->setTimeCreated(Argument::type('int'))
->shouldBeCalled()
->willReturn($blog);
......
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