PHP Class spec\Newscoop\ArticlesBundle\Services\EditorialCommentsServiceSpec

Inheritance: extends PhpSpec\ObjectBehavior
ファイルを表示 Open project: sourcefabric/newscoop

Public Methods

Method Description
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 )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_should_create_comment() public method

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

it_should_edit_comment() public method

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

it_should_remove_comment() public method

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

it_should_resolve_comment() public method

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

it_shouldnt_edit_comment() public method

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 method

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