Skip to content

Commit

Permalink
chore: do not run the reliefweb_entraid tests if the module is disabled
Browse files Browse the repository at this point in the history
Refs: OPS-10828
  • Loading branch information
orakili committed Dec 2, 2024
1 parent 00687ee commit fd884b2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ protected function tearDown(): void {
* @covers ::redirectLogin()
*/
public function testRedirectLogin() {
// Skip if the module is not installed.
if (!$this->container->get('module_handler')->moduleExists('reliefweb_entraid')) {
$this->assertTrue(TRUE);
return;
}

// Get the EntraID configuration.
$entraid_config = $this->container
->get('config.factory')
Expand Down

0 comments on commit fd884b2

Please sign in to comment.