public function SimplesamlphpAuthManagerTest::testGetStorage in simpleSAMLphp Authentication 8.3
Tests getStorage() method.
@covers ::__construct @covers ::getStorage
File
- tests/
src/ Unit/ Service/ SimplesamlphpAuthManagerTest.php, line 227
Class
- SimplesamlphpAuthManagerTest
- SimplesamlphpAuthManager unit tests.
Namespace
Drupal\Tests\simplesamlphp_auth\Unit\ServiceCode
public function testGetStorage() {
// Set expectations for config.
$this->simplesamlConfig
->expects($this
->any())
->method('getValue')
->with($this
->equalTo('store.type'))
->will($this
->returnValue('sql'));
// Test getStorage() method.
$simplesaml = $this
->getManagerInContext();
$return = $simplesaml
->getStorage();
$this
->assertEquals('sql', $return);
}