Skip to content

Commit

Permalink
[9-16] ブログ記事一覧のテストを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Dec 28, 2015
1 parent b4ae24c commit 1d73ed5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/lists/ch09/09-16.txt
@@ -0,0 +1,12 @@
use AppBundle\DataFixtures\ORM\BlogArticleLoader;
...
public function ブログ記事一覧が表示されること()
{
$this->loadFixtures([
BlogArticleLoader::class
]);

$client = static::createClient();
...
}
...
5 changes: 5 additions & 0 deletions src/AppBundle/Tests/Controller/BlogControllerTest.php
Expand Up @@ -2,6 +2,7 @@
namespace AppBundle\Tests\Controller;

use Liip\FunctionalTestBundle\Test\WebTestCase;
use AppBundle\DataFixtures\ORM\BlogArticleLoader;

class BlogControllerTest extends WebTestCase
{
Expand All @@ -10,6 +11,10 @@ class BlogControllerTest extends WebTestCase
*/
public function ブログ記事一覧が表示されること()
{
$this->loadFixtures([
BlogArticleLoader::class
]);

$client = static::createClient();
$crawler = $client->request('GET', '/blog/');

Expand Down

0 comments on commit 1d73ed5

Please sign in to comment.