public function setUp()
{
parent::setUp();
View::addLocation(__DIR__ . '/fixtures/views');
$this->controllerName = "AcProjectsController";
$this->modelName = "AcProject";
$this->modelAttributes = ['id' => 5, 'name' => 'Test AuthorityController package', 'priority' => 1];
$this->resourceName = "ac_projects";
// str_plural(snake_case($this->modelName));
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->modelName);
}