public function UserProtectionBaseUnitTest::testGetConfiguration in User protect 8
@covers ::setConfiguration @covers ::getConfiguration
File
- tests/
src/ Unit/ Plugin/ UserProtection/ UserProtectionBaseUnitTest.php, line 80
Class
- UserProtectionBaseUnitTest
- @coversDefaultClass \Drupal\userprotect\Plugin\UserProtection\UserProtectionBase @group userprotect
Namespace
Drupal\Tests\userprotect\Unit\Plugin\UserProtectionCode
public function testGetConfiguration() {
$configuration = [
'status' => TRUE,
];
$this
->assertInstanceOf('\\Drupal\\userprotect\\Plugin\\UserProtection\\UserProtectionInterface', $this->plugin
->setConfiguration($configuration));
$saved_configuration = $this->plugin
->getConfiguration();
$this
->assertSame($configuration['status'], $saved_configuration['status']);
}