Application\Sonata\UserBundle\Tests\Functional\LoginTest::testNotLoggedInUserCannotAccessDashboard PHP Method

testNotLoggedInUserCannotAccessDashboard() public method

    public function testNotLoggedInUserCannotAccessDashboard()
    {
        $client = $this->getClient();
        $client->followRedirects(true);
        $crawler = $client->request('GET', '/admin/dashboard');
        $this->assertEquals(0, $crawler->filter('html:contains("Bills")')->count());
    }