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

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

public it_should_edit_comment ( EditorialComment $comment, User $user )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User
    public function it_should_edit_comment(EditorialComment $comment, User $user)
    {
        $comment->getUser()->willReturn($user);
        $comment->setComment(Argument::type('string'))->willReturn(true);
        $this->edit('updated comment', $comment, $user)->shouldReturn(true);
    }