public function CDNJSTest::test_setgetScheme in Libraries CDN API 7
@covers ::setScheme() @covers ::getScheme()
File
- tests/
src/ Plugin/ LibrariesCDN/ CDNJSTest.php, line 47 - Contains \Drupal\Tests\Libraries_cdn\Plugin\LibrariesCDN\CDNJSTest.
Class
- CDNJSTest
- @coversDefaultClass \Drupal\libraries_cdn\Plugin\LibrariesCDN\CDNJS
Namespace
Drupal\Tests\libraries_cdn\Plugin\LibrariesCDNCode
public function test_setgetScheme() {
$this
->assertEquals('http', $this->plugin
->getScheme());
$this
->assertEquals('ftp', $this->plugin
->getScheme('ftp'));
$this->plugin
->setScheme('https');
$this
->assertEquals('https', $this->plugin
->getScheme());
$this->plugin
->setScheme();
$this
->assertEquals('http', $this->plugin
->getScheme());
}