You are here

protected function LinePatternDetectorTest::setupFile in Libraries API 8.3

_contents

Parameters

$file:

2 calls to LinePatternDetectorTest::setupFile()
LinePatternDetectorTest::testDetectVersion in tests/src/Unit/Plugin/libraries/VersionDetector/LinePatternDetectorTest.php
Tests that version detection succeeds with a version in the file.
LinePatternDetectorTest::testDetectVersionNoVersion in tests/src/Unit/Plugin/libraries/VersionDetector/LinePatternDetectorTest.php
Tests that version detection fails without a version in the file.

File

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

Class

LinePatternDetectorTest
Tests the line pattern version detector.

Namespace

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

Code

protected function setupFile($file, $file_contents) {
  vfsStream::create([
    'libraries' => [
      $this->libraryId => [
        $file => $file_contents,
      ],
    ],
  ]);
}