protected function SimplesamlphpAuthManagerTest::getManagerInContext in simpleSAMLphp Authentication 8.3
Get a new manager instance using mocked constructor arguments.
Return value
\Drupal\simplesamlphp_auth\Service\SimplesamlphpAuthManager A mocked manager.
8 calls to SimplesamlphpAuthManagerTest::getManagerInContext()
- SimplesamlphpAuthManagerTest::testAllowUserByAttribute in tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php - Tests allowUserByAttribute() method.
- SimplesamlphpAuthManagerTest::testAttributes in tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php - Tests attributes assignment logic.
- SimplesamlphpAuthManagerTest::testAttributesException in tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php - Tests attribute assignment logic throwing exceptions.
- SimplesamlphpAuthManagerTest::testExternalAuthenticate in tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php - Tests externalAuthenticate() method.
- SimplesamlphpAuthManagerTest::testGetStorage in tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php - Tests getStorage() method.
File
- tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php, line 162
Class
- SimplesamlphpAuthManagerTest
- SimplesamlphpAuthManager unit tests.
Namespace
Drupal\Tests\simplesamlphp_auth\Unit\ServiceCode
protected function getManagerInContext() {
return new SimplesamlphpAuthManager($this->configFactory, $this->currentUser, $this->adminContext, $this->moduleHandler, $this->requestStack, $this->messenger, $this->instance, $this->simplesamlConfig);
}