public function setUp()
{
parent::setUp();
View::addLocation(__DIR__ . '/fixtures/views');
$this->parentControllerName = "AcProjectsController";
$this->parentModelName = "AcProject";
$this->parentModelAttributes = ['id' => 3, 'name' => 'Test AuthorityController package', 'priority' => 1];
$this->parentResourceName = "ac_projects";
$this->controllerName = "AcTasksController";
$this->modelName = "AcTask";
$this->modelAttributes = ['id' => 5, 'name' => 'Write more tests!', 'ac_project_id' => 3];
$this->resourceName = "ac_projects.ac_tasks";
Route::resource($this->parentResourceName, $this->parentControllerName);
Route::resource($this->resourceName, $this->controllerName);
$this->userAttributes = ['id' => 1, 'username' => 'tortue', 'firstname' => 'Tortue', 'lastname' => 'Torche', 'email' => '[email protected]', 'password' => Hash::make('tortuetorche'), 'displayname' => 'Tortue Torche'];
$this->user = $this->getUserWithRole('admin');
$this->authority = $this->getAuthority($this->user);
$this->authority->allow('manage', $this->parentModelName);
$this->authority->allow('manage', $this->modelName);
}