PHP Класс spec\Newscoop\GimmeBundle\Controller\ArticlesControllerSpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Описание методов

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

public it_is_initializable ( )

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

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 it_should_update_article ( $request, $user, $query, $article, $form, $articleService )

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

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

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() публичный Метод

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

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

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

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