You are here

public function CDNJSTest::test_getLocalDirectoryName in Libraries CDN API 7

@covers ::getLocalDirectoryName()

File

tests/src/Plugin/LibrariesCDN/CDNJSTest.php, line 515
Contains \Drupal\Tests\Libraries_cdn\Plugin\LibrariesCDN\CDNJSTest.

Class

CDNJSTest
@coversDefaultClass \Drupal\libraries_cdn\Plugin\LibrariesCDN\CDNJS

Namespace

Drupal\Tests\libraries_cdn\Plugin\LibrariesCDN

Code

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));
}