assertUrlIsSecured('/doctor'); } public function testDoctorIsSecureForRole() { $this->assertUrlIsSecuredForRole(User::ROLE_ADMIN, '/doctor'); } public function testIndexAction() { $client = $this->getClientForAuthenticatedUser(User::ROLE_SUPER_ADMIN); $this->assertAccessIsGranted($client, '/doctor'); $result = $client->getCrawler()->filter('.content .box-header'); $this->assertEquals(7, count($result)); } }