You are here

public function LinePatternDetectorTest::testDetectVersionNonLocal in Libraries API 8.3

Tests that version detection fails for a non-local library.

@covers ::detectVersion

File

tests/src/Unit/Plugin/libraries/VersionDetector/LinePatternDetectorTest.php, line 28

Class

LinePatternDetectorTest
Tests the line pattern version detector.

Namespace

Drupal\Tests\libraries\Unit\Plugin\libraries\VersionDetector

Code

public function testDetectVersionNonLocal() {
  $this
    ->expectException(UnknownLibraryVersionException::class);
  $library = $this
    ->prophesize(VersionedLibraryInterface::class);
  $detector = $this
    ->setupDetector();
  $detector
    ->detectVersion($library
    ->reveal());
}