/** * Helper method to set an ACL role into the scenario * * @param string role name * @return Illuminate\Foundation\Testing\Client */ protected function getRequestForRole($role = '') { $testApp = new TestCase(); $testApp->setAppSession('roles', array($role)); return $testApp->getClient(); }