diff --git a/html/modules/custom/reliefweb_entraid/tests/src/ExistingSite/ReliefwebEntraidLoginTest.php b/html/modules/custom/reliefweb_entraid/tests/src/ExistingSite/ReliefwebEntraidLoginTest.php index a925ff088..3100b3609 100644 --- a/html/modules/custom/reliefweb_entraid/tests/src/ExistingSite/ReliefwebEntraidLoginTest.php +++ b/html/modules/custom/reliefweb_entraid/tests/src/ExistingSite/ReliefwebEntraidLoginTest.php @@ -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')