spec\Newscoop\ArticlesBundle\Services\EditorialCommentsServiceSpec::it_should_remove_comment PHP Метод

it_should_remove_comment() публичный Метод

public it_should_remove_comment ( EditorialComment $comment, User $user )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User
    public function it_should_remove_comment(EditorialComment $comment, User $user)
    {
        $comment->getUser()->willReturn($user);
        $comment->setIsActive(Argument::type('bool'))->willReturn(true);
        $this->remove($comment, $user)->shouldReturn(true);
    }