Skip to content

Commit

Permalink
Test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Jan 30, 2023
1 parent 84099e5 commit 0589ab7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Feature/Events/ExportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public function testExport($role)
$admin = User::factory()->administrator()->create();

switch ($role) {
case Role::ADMINISTRATOR: $user = User::factory()->administrator()->create(); break;
case Role::NETWORK_COORDINATOR: $user = User::factory()->networkCoordinator()->create(); break;
case Role::HOST: $user = User::factory()->host()->create(); break;
case 'Administrator': $user = User::factory()->administrator()->create(); break;
case 'NetworkCoordinator': $user = User::factory()->networkCoordinator()->create(); break;
case 'Host': $user = User::factory()->host()->create(); break;
}

if ($role == 'NetworkCoordinator') {
Expand Down Expand Up @@ -64,7 +64,7 @@ public function testExport($role)
$group2->approved = true;
$group2->save();

$group3 = factory(Group::class)->create([
$group3 = Group::factory()->create([
'name' => 'test3'
]);
$this->networkService->addGroupToNetwork($admin, $group3, $network);
Expand Down Expand Up @@ -107,7 +107,7 @@ public function testExport($role)
'category_creation' => 111,
'event' => $idevents2,
]);
$device = factory(Device::class)->states('fixed')->create([
$device = Device::factory()->fixed()->create([
'category' => 111,
'category_creation' => 111,
'event' => $idevents3,
Expand Down

0 comments on commit 0589ab7

Please sign in to comment.