PHP Class spec\Newscoop\GimmeBundle\Controller\EditorialCommentsApiControllerSpec

Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Méthode Description
it_is_initializable ( )
it_should_create_new_editorial_comment ( Request $request, $form, $query, $article )
it_should_edit_editorial_comment ( Request $request, EditorialComment $comment, $form, $editorialCommentRepository, $query )
it_should_remove_editorial_comment ( Request $request, EditorialComment $comment, $editorialCommentRepository, $query )
it_should_resolve_editorial_comment ( Request $request, EditorialComment $comment, $form, $editorialCommentRepository, $query )
let ( Symfony\Component\DependencyInjection\Container $container, Doctrine\Bundle\DoctrineBundle\Registry $doctrine, ArticleRepository $articleRepository, EntityManager $entityManager, Request $request, FormFactory $formFactory, FormBuilder $formBuilder, Form $form, Symfony\Component\Form\FormView $formView, Router $router, EditorialCommentsService $editorialCommentService, EditorialComment $editorialComment, EditorialCommentRepository $editorialCommentRepository, User $user, UserService $userService, Article $article, Doctrine\ORM\AbstractQuery $query )

Method Details

it_is_initializable() public méthode

public it_is_initializable ( )

it_should_create_new_editorial_comment() public méthode

public it_should_create_new_editorial_comment ( Request $request, $form, $query, $article )
$request Symfony\Component\HttpFoundation\Request

it_should_edit_editorial_comment() public méthode

public it_should_edit_editorial_comment ( Request $request, EditorialComment $comment, $form, $editorialCommentRepository, $query )
$request Symfony\Component\HttpFoundation\Request
$comment Newscoop\ArticlesBundle\Entity\EditorialComment

it_should_remove_editorial_comment() public méthode

public it_should_remove_editorial_comment ( Request $request, EditorialComment $comment, $editorialCommentRepository, $query )
$request Symfony\Component\HttpFoundation\Request
$comment Newscoop\ArticlesBundle\Entity\EditorialComment

it_should_resolve_editorial_comment() public méthode

public it_should_resolve_editorial_comment ( Request $request, EditorialComment $comment, $form, $editorialCommentRepository, $query )
$request Symfony\Component\HttpFoundation\Request
$comment Newscoop\ArticlesBundle\Entity\EditorialComment

let() public méthode

public let ( Symfony\Component\DependencyInjection\Container $container, Doctrine\Bundle\DoctrineBundle\Registry $doctrine, ArticleRepository $articleRepository, EntityManager $entityManager, Request $request, FormFactory $formFactory, FormBuilder $formBuilder, Form $form, Symfony\Component\Form\FormView $formView, Router $router, EditorialCommentsService $editorialCommentService, EditorialComment $editorialComment, EditorialCommentRepository $editorialCommentRepository, User $user, UserService $userService, Article $article, Doctrine\ORM\AbstractQuery $query )
$container Symfony\Component\DependencyInjection\Container
$doctrine Doctrine\Bundle\DoctrineBundle\Registry
$articleRepository Newscoop\Entity\Repository\ArticleRepository
$entityManager Doctrine\ORM\EntityManager
$request Symfony\Component\HttpFoundation\Request
$formFactory Symfony\Component\Form\FormFactory
$formBuilder Symfony\Component\Form\FormBuilder
$form Symfony\Component\Form\Form
$formView Symfony\Component\Form\FormView
$router Symfony\Component\Routing\Router
$editorialCommentService Newscoop\ArticlesBundle\Services\EditorialCommentsService
$editorialComment Newscoop\ArticlesBundle\Entity\EditorialComment
$editorialCommentRepository Newscoop\ArticlesBundle\Entity\Repository\EditorialCommentRepository
$user Newscoop\Entity\User
$userService Newscoop\Services\UserService
$article Newscoop\Entity\Article
$query Doctrine\ORM\AbstractQuery