public function JSDelivrTest::test_setgetConfiguration in Libraries CDN API 7
@covers ::setConfiguration() @covers ::getConfiguration()
File
- tests/
src/ Plugin/ LibrariesCDN/ JSDelivrTest.php, line 85 - Contains \Drupal\Tests\Libraries_cdn\Plugin\LibrariesCDN\JSDelivrTest.
Class
- JSDelivrTest
- @coversDefaultClass \Drupal\libraries_cdn\Plugin\LibrariesCDN\JSDelivr
Namespace
Drupal\Tests\libraries_cdn\Plugin\LibrariesCDNCode
public function test_setgetConfiguration() {
$configuration = array(
'test1' => 'url1',
'test2' => 'url2',
);
$this->plugin
->setConfiguration($configuration);
$this
->assertSame($configuration + array(
'available' => NULL,
), $this->plugin
->getConfiguration());
$this
->assertEquals('url2', $this->plugin
->getConfiguration('test2'));
$this
->assertEmpty($this->plugin
->getConfiguration('inexistant_property'));
}