Loading Core/Blogs/Blog.php +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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 { { Loading Loading @@ -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. Loading Spec/Core/Blogs/Delegates/CreateActivitySpec.php +8 −0 Original line number Original line Diff line number Diff line Loading @@ -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([]); Loading @@ -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']); Loading Spec/Core/Blogs/ManagerSpec.php +4 −0 Original line number Original line Diff line number Diff line Loading @@ -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); Loading Loading
Core/Blogs/Blog.php +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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 { { Loading Loading @@ -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. Loading
Spec/Core/Blogs/Delegates/CreateActivitySpec.php +8 −0 Original line number Original line Diff line number Diff line Loading @@ -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([]); Loading @@ -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']); Loading
Spec/Core/Blogs/ManagerSpec.php +4 −0 Original line number Original line Diff line number Diff line Loading @@ -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); Loading