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

(fix) specs should resolve fine

parent b9e36ab7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -96,7 +96,7 @@ use Minds\Traits\MagicAttributes;
 * @method Blog setAllowComments(bool $allowComments)
 * @method Blog setAllowComments(bool $allowComments)
 * @method bool getAllowComments()
 * @method bool getAllowComments()
 * @method int getTimeSent()
 * @method int getTimeSent()
 * @method Blog setTimeSent(int $timeSent)
 * @method Blog setTimeSent(int $time_sent)
 */
 */
class Blog extends RepositoryEntity
class Blog extends RepositoryEntity
{
{
@@ -243,7 +243,7 @@ class Blog extends RepositoryEntity
    protected $allowComments = true;
    protected $allowComments = true;


    /** @var int */
    /** @var int */
    protected $time_sent;
    protected $timeSent;


    /**
    /**
     * Blog constructor.
     * Blog constructor.
+8 −0
Original line number Original line Diff line number Diff line
@@ -81,6 +81,10 @@ class CreateActivitySpec extends ObjectBehavior
            ->shouldBeCalled()
            ->shouldBeCalled()
            ->willReturn(1000);
            ->willReturn(1000);


        $blog->getTimeCreated()
            ->shouldBeCalled()
            ->willReturn(9999);

        $this->db->getRow("activity:entitylink:9999")
        $this->db->getRow("activity:entitylink:9999")
            ->shouldBeCalled()
            ->shouldBeCalled()
            ->willReturn([]);
            ->willReturn([]);
@@ -106,6 +110,10 @@ class CreateActivitySpec extends ObjectBehavior
            ->shouldBeCalled()
            ->shouldBeCalled()
            ->willReturn(9999);
            ->willReturn(9999);


        $blog->getTimeCreated()
            ->shouldBeCalled()
            ->willReturn(9999);

        $this->db->getRow("activity:entitylink:9999")
        $this->db->getRow("activity:entitylink:9999")
            ->shouldBeCalled()
            ->shouldBeCalled()
            ->willReturn(['activity1']);
            ->willReturn(['activity1']);
+4 −0
Original line number Original line Diff line number Diff line
@@ -153,6 +153,10 @@ class ManagerSpec extends ObjectBehavior
        $blog->getSubtype()
        $blog->getSubtype()
            ->willReturn('blog');
            ->willReturn('blog');


        $blog->getTimeCreated()
            ->shouldBeCalled()
            ->willReturn(9999);

        $blog->setTimeCreated(Argument::type('int'))
        $blog->setTimeCreated(Argument::type('int'))
            ->shouldBeCalled()
            ->shouldBeCalled()
            ->willReturn($blog);
            ->willReturn($blog);