This commit is contained in:
jf-cbd
2026-03-09 18:27:09 +01:00
parent b8138879ba
commit 3c52e06c17
4 changed files with 5 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ class LoginWebPageTest extends ItopDataTestCase
true
);
$bShouldSeeForbiddenAdminPage ?
$this->assertStringNotContainsString('<title>Access restricted to people having administrator privileges</title>', $sPageContent, 'Should prevent non admin user to access this page') : // in delegated authentication endpoints list (in the module), login should not be required
$this->assertStringContainsString('Access restricted to people having administrator privileges', $sPageContent, 'Should prevent non admin user to access this page') : // in delegated authentication endpoints list (in the module), login should not be required
$this->assertStringContainsString('Yo !', $sPageContent, 'Should execute the file and see its content since user has admin profile');
}

View File

@@ -2,7 +2,7 @@
SetupWebPage::AddModule(
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
'extension-with-execution-policy/0.0.1',
'extension-without-delegated-authentication-endpoints-list/0.0.1',
[
// Identification
//
@@ -19,7 +19,7 @@ SetupWebPage::AddModule(
// Security
'delegated_authentication_endpoints' => [
'src/Controller/FileInDelegatedAuthenticationEndpointsList.php',
'src/Controller/FileInDelegatedAuthenticationEndpointsAndAdminRequiredList.php',
'src/Controller/FileInDelegatedAuthenticationEndpointsListAndAdminRequired.php',
],
// Components

View File

@@ -2,7 +2,7 @@
SetupWebPage::AddModule(
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
'extension-without-execution-policy/0.0.1',
'extension-without-delegated-authentication-endpoints-list/0.0.1',
[
// Identification
//