Frontend\Modules\Blog\Tests\Actions\IndexTest::testIndexContainsBlogPosts PHP Method

testIndexContainsBlogPosts() public method

    public function testIndexContainsBlogPosts()
    {
        $client = static::createClient();
        $this->loadFixtures($client, array('Backend\\Modules\\Blog\\DataFixtures\\LoadBlogCategories', 'Backend\\Modules\\Blog\\DataFixtures\\LoadBlogPosts'));
        $client->request('GET', '/en/blog');
        self::assertEquals(200, $client->getResponse()->getStatusCode());
        self::assertContains('Blogpost for functional tests', $client->getResponse()->getContent());
    }