PHP 클래스 spec\Newscoop\ArticlesBundle\Services\EditorialCommentsServiceSpec

상속: extends PhpSpec\ObjectBehavior
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
it_is_initializable ( )
it_should_create_comment ( Article $article, User $user )
it_should_edit_comment ( EditorialComment $comment, User $user )
it_should_remove_comment ( EditorialComment $comment, User $user )
it_should_resolve_comment ( EditorialComment $comment, User $user )
it_shouldnt_edit_comment ( EditorialComment $comment, User $user, User $newUser )
let ( $die, EntityManager $em, UserService $userService, User $user )

메소드 상세

it_is_initializable() 공개 메소드

public it_is_initializable ( )

it_should_create_comment() 공개 메소드

public it_should_create_comment ( Article $article, User $user )
$article Newscoop\Entity\Article
$user Newscoop\Entity\User

it_should_edit_comment() 공개 메소드

public it_should_edit_comment ( EditorialComment $comment, User $user )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User

it_should_remove_comment() 공개 메소드

public it_should_remove_comment ( EditorialComment $comment, User $user )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User

it_should_resolve_comment() 공개 메소드

public it_should_resolve_comment ( EditorialComment $comment, User $user )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User

it_shouldnt_edit_comment() 공개 메소드

public it_shouldnt_edit_comment ( EditorialComment $comment, User $user, User $newUser )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User
$newUser Newscoop\Entity\User

let() 공개 메소드

public let ( $die, EntityManager $em, UserService $userService, User $user )
$em Doctrine\ORM\EntityManager
$userService Newscoop\Services\UserService
$user Newscoop\Entity\User