コード例 #1
0
ファイル: ManagerTest.php プロジェクト: ndrx-io/elude
 public function setUp()
 {
     $this->manager = $this->getManager();
     parent::setUp();
     $this->user = $this->userRepository->create(new \App\User(['username' => $this->faker->userName, 'email' => $this->faker->safeEmail, 'password' => $this->faker->password()]));
     $this->group = $this->groupRepository->create(new \App\Group(['name' => uniqid()]));
     $this->role = $this->roleRepository->create(new \App\Role(['name' => uniqid(), 'filter' => 'A']));
     $this->roleRevoke = $this->roleRepository->create(new \App\Role(['name' => uniqid(), 'filter' => 'R']));
     $this->permissionFirst = $this->permissionRepository->create(new \App\Permission(['area' => uniqid(), 'permission' => uniqid(), 'description' => 'test']));
     $this->permissionSecond = $this->permissionRepository->create(new \App\Permission(['area' => uniqid(), 'permission' => uniqid(), 'description' => 'test']));
     $this->initiate();
 }