Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CamilleBeau committed May 9, 2024
1 parent 1777b20 commit cbaf53b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions modules/dashboard/test/DashboardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function setUp(): void
"user_project_rel",
[
'UserID' => $user_id,
'ProjectID' => '7777',
'ProjectID' => '1',
]
);
$this->DB->insert(
Expand Down Expand Up @@ -323,6 +323,17 @@ public function tearDown(): void
["Value" => null],
["ConfigID" => 48]
);
$user_id = $this->DB->pselectOne(
"SELECT ID FROM users WHERE UserID=:test_user_id",
["test_user_id" => 'testUser1']
);
$this->DB->delete(
"user_project_rel",
[
'UserID' => $user_id,
'ProjectID' => '1',
]
);
$this->DB->run('SET foreign_key_checks =1');
parent::tearDown();
}
Expand Down Expand Up @@ -413,7 +424,7 @@ public function testNewScans()
$this->safeGet($this->url . '/dashboard/');
$this->_testMytaskPanelAndLink(
".new-scans",
"10",
"4",
"- Imaging Browser"
);
$this->resetPermissions();
Expand Down Expand Up @@ -443,7 +454,7 @@ public function testConflictResolver()
$this->safeGet($this->url . '/dashboard/');
$this->_testMytaskPanelAndLink(
".conflict_resolver",
"574",
"570",
"- Conflict Resolver"
);
$this->resetPermissions();
Expand Down Expand Up @@ -520,7 +531,7 @@ public function testPendingUser()
$this->safeGet($this->url . '/dashboard/');
$this->_testMytaskPanelAndLink(
".pending-accounts",
"2",
"1",
"- User Accounts"
);
$this->resetPermissions();
Expand Down

0 comments on commit cbaf53b

Please sign in to comment.