public function PhpFileLibraryTest::testPhpFileInfo in Libraries API 8.3
Tests that the list of PHP files is correctly gathered.
File
- tests/
src/ Kernel/ ExternalLibrary/ PhpFile/ PhpFileLibraryTest.php, line 38
Class
- PhpFileLibraryTest
- Tests that the external library manager properly loads PHP file libraries.
Namespace
Drupal\Tests\libraries\Kernel\ExternalLibrary\PhpFileCode
public function testPhpFileInfo() {
/** @var \Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLibrary $library */
$library = $this
->getLibrary();
$this
->assertTrue($library
->isInstalled());
$library_path = $this->modulePath . '/tests/libraries/test_php_file_library';
$this
->assertEquals($library_path, $library
->getLocalPath());
$this
->assertEquals([
"{$library_path}/test_php_file_library.php",
], $library
->getPhpFiles());
}