/**
  * Test get collection of movies
  */
 public function testGetMovies()
 {
     $objects = $this->loadTestFixtures(['@AppBundle/DataFixtures/ORM/Test/Movie/CrudData.yml']);
     // Test scope
     $this->restScopeTestCase('/api/movies', ['list' => $this->getScopeConfig('movie/list.yml')], true);
     // Test filters
     $listFilterCaseHandler = new ListFilterCaseHandler(['movie-1' => $objects['movie-1']]);
     $listFilterCaseHandler->addCase('name', '=Some name', 'movie-1', true);
     $this->restListFilterTestCase('/api/movies', $listFilterCaseHandler->getCases());
 }
 /**
  * Test get collection of movie comments
  */
 public function testGetMovieComments()
 {
     $objects = $this->loadFixturesAndAuthenticate(['@AppBundle/DataFixtures/ORM/Test/MovieComment/CrudData.yml']);
     // Test scope
     $this->restScopeTestCase('/api/movie-comments', ['list' => $this->getScopeConfig('movie_comment/list.yml')], true);
     // Test filters
     $listFilterCaseHandler = new ListFilterCaseHandler(['movie-comment-1' => $objects['movie-comment-1']]);
     $listFilterCaseHandler->addCase('body', '=Some body', 'movie-comment-1', true);
     $listFilterCaseHandler->addCase('publish', '=1', 'movie-comment-1', true);
     $this->restListFilterTestCase('/api/movie-comments', $listFilterCaseHandler->getCases());
 }
 /**
  * Test get collection of articles
  */
 public function testGetArticles()
 {
     $objects = $this->loadTestFixtures(['@AppBundle/DataFixtures/ORM/Test/Article/CrudData.yml']);
     // Test scope
     $this->restScopeTestCase('/api/articles', ['list' => $this->getScopeConfig('article/list.yml')], true);
     // Test filters
     $listFilterCaseHandler = new ListFilterCaseHandler(['article-1' => $objects['article-1']]);
     $listFilterCaseHandler->addCase('type', '=news', 'article-1', true);
     $listFilterCaseHandler->addCase('name', '=Some name', 'article-1', true);
     $listFilterCaseHandler->addCase('body', '=Some body', 'article-1', true);
     $listFilterCaseHandler->addCase('publish', '=1', 'article-1', true);
     $listFilterCaseHandler->addCase('publishAt', '=2016-06-15 06:12', 'article-1', true);
     $this->restListFilterTestCase('/api/articles', $listFilterCaseHandler->getCases());
 }