Backend\Modules\Blog\Tests\Action\IndexTest::testIndexContainsBlogPosts PHP Method

testIndexContainsBlogPosts() public method

    public function testIndexContainsBlogPosts()
    {
        $client = static::createClient();
        $this->login();
        $client->request('GET', '/private/en/blog/index');
        self::assertContains('Blogpost for functional tests', $client->getResponse()->getContent());
        // some stuff we also want to see on the blog index
        self::assertContains('Add article', $client->getResponse()->getContent());
        self::assertContains('Published articles', $client->getResponse()->getContent());
    }