PHP Class spec\Newscoop\GimmeBundle\Controller\ArticlesControllerSpec

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

Public Methods

Method Description
it_is_initializable ( )
it_should_create_new_article ( $request, $user, $form, $languageRepository, $language, $articleTypeRepository, $articleType, $publicationRepository, $publication, $issueRepository, $issue, $sectionRepository, $section, $author, $authorTypeRepository, $authorType, $articleService, $article )
it_should_update_article ( $request, $user, $query, $article, $form, $articleService )
its_deleteUnlockArticle_should_return_status_code_403_when_setting_the_same_status_while_unlocking ( $request, $article, $query, $number, $language )
its_lockUnlockArticle_should_lock_article ( $request, $article, $query, $number, $language, $user, $token, $tokenStorage, $security )
its_lockUnlockArticle_should_return_status_code_403_when_setting_the_same_status_while_locking ( $request, $article, $query, $number, $language )
its_lockUnlockArticle_should_unlock_article ( $request, $article, $query, $number, $language )
let ( ArticleService $articleService, AuthorService $authorService, CacheService $cacheService, Symfony\Component\DependencyInjection\Container $container, ArticleRepository $articleRepository, LanguageRepository $languageRepository, ArticleTypeRepository $articleTypeRepository, PublicationRepository $publicationRepository, IssueRepository $issueRepository, SectionRepository $sectionRepository, AuthorTypeRepository $authorTypeRepository, EntityManager $entityManager, Request $request, FormFactory $formFactory, FormBuilder $formBuilder, Form $form, Symfony\Component\Form\FormView $formView, User $user, UserService $userService, Article $article, Publication $publication, ArticleType $articleType, Issue $issue, Section $section, Language $language, Author $author, AuthorType $authorType, Doctrine\ORM\AbstractQuery $query, SecurityContext $security, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage $tokenStorage, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Router $router )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_should_create_new_article() public method

public it_should_create_new_article ( $request, $user, $form, $languageRepository, $language, $articleTypeRepository, $articleType, $publicationRepository, $publication, $issueRepository, $issue, $sectionRepository, $section, $author, $authorTypeRepository, $authorType, $articleService, $article )

it_should_update_article() public method

public it_should_update_article ( $request, $user, $query, $article, $form, $articleService )

its_deleteUnlockArticle_should_return_status_code_403_when_setting_the_same_status_while_unlocking() public method

its_lockUnlockArticle_should_lock_article() public method

public its_lockUnlockArticle_should_lock_article ( $request, $article, $query, $number, $language, $user, $token, $tokenStorage, $security )

its_lockUnlockArticle_should_return_status_code_403_when_setting_the_same_status_while_locking() public method

its_lockUnlockArticle_should_unlock_article() public method

public its_lockUnlockArticle_should_unlock_article ( $request, $article, $query, $number, $language )

let() public method

public let ( ArticleService $articleService, AuthorService $authorService, CacheService $cacheService, Symfony\Component\DependencyInjection\Container $container, ArticleRepository $articleRepository, LanguageRepository $languageRepository, ArticleTypeRepository $articleTypeRepository, PublicationRepository $publicationRepository, IssueRepository $issueRepository, SectionRepository $sectionRepository, AuthorTypeRepository $authorTypeRepository, EntityManager $entityManager, Request $request, FormFactory $formFactory, FormBuilder $formBuilder, Form $form, Symfony\Component\Form\FormView $formView, User $user, UserService $userService, Article $article, Publication $publication, ArticleType $articleType, Issue $issue, Section $section, Language $language, Author $author, AuthorType $authorType, Doctrine\ORM\AbstractQuery $query, SecurityContext $security, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage $tokenStorage, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Router $router )
$articleService Newscoop\Services\ArticleService
$authorService Newscoop\Services\AuthorService
$cacheService Newscoop\Services\CacheService
$container Symfony\Component\DependencyInjection\Container
$articleRepository Newscoop\Entity\Repository\ArticleRepository
$languageRepository Newscoop\Entity\Repository\LanguageRepository
$articleTypeRepository Newscoop\Entity\Repository\ArticleTypeRepository
$publicationRepository Newscoop\Entity\Repository\PublicationRepository
$issueRepository Newscoop\Entity\Repository\IssueRepository
$sectionRepository Newscoop\Entity\Repository\SectionRepository
$authorTypeRepository Newscoop\Entity\Repository\AuthorTypeRepository
$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
$user Newscoop\Entity\User
$userService Newscoop\Services\UserService
$article Newscoop\Entity\Article
$publication Newscoop\Entity\Publication
$articleType Newscoop\Entity\ArticleType
$issue Newscoop\Entity\Issue
$section Newscoop\Entity\Section
$language Newscoop\Entity\Language
$author Newscoop\Entity\Author
$authorType Newscoop\Entity\AuthorType
$query Doctrine\ORM\AbstractQuery
$security Symfony\Component\Security\Core\SecurityContext
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$router Symfony\Component\Routing\Router