public function JSDelivrTest::test_getLocalDirectoryName in Libraries CDN API 7
@covers ::getLocalDirectoryName()
File
- tests/
src/ Plugin/ LibrariesCDN/ JSDelivrTest.php, line 536 - 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_getLocalDirectoryName() {
$this->plugin
->setLibrary('jquery');
$version = 3.14;
$this
->assertEquals('public://libraries/' . $this->plugin
->getPluginId() . '/' . $this->plugin
->getLibrary() . '/' . $version, $this->plugin
->getLocalDirectoryName($version));
}