Skip to content

Commit

Permalink
fix: change uninstall check to boolean check (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: ekes <ekes@iskra.net>
  • Loading branch information
millnut and ekes committed Jul 9, 2024
1 parent 9021abb commit a3a3732
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/Functional/LocalGovProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public function testLocalGovDrupalProfile() {
$this->fail('Uninstalled localgov_core module.');
}
catch (ModuleUninstallValidatorException $e) {
$this->assertStringContainsString('module is required', $e->getMessage());
$hasError = strlen($e->getMessage()) > 0 ? TRUE : FALSE;
$this->assertTrue($hasError);
}

// Test localgov_core:localgov_roles submodule is enabled.
Expand Down

0 comments on commit a3a3732

Please sign in to comment.