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