Skip to content
Snippets Groups Projects
Commit 14049c1e authored by Andrii Podanenko's avatar Andrii Podanenko
Browse files

fix(cleanup): Issue #3297522 by podarok: Remove test for deprecated and removed scan_info_files()

parent 72ae03fd
No related branches found
No related tags found
No related merge requests found
......@@ -132,24 +132,6 @@ class LibrariesWebTest extends BrowserTestBase {
$this->assertEquals($library['error message'], $error_message, 'Correct error message for an incompatible dependency');
}
/**
* Tests libraries_scan_info_files().
*/
public function testLibrariesScanInfoFiles() {
$expected = [
'example_info_file' => (object) [
'uri' => \Drupal::service('extension.list.module')->getPath('libraries') . '/tests/example/example_info_file.libraries.info.yml',
'filename' => 'example_info_file.libraries.info.yml',
'name' => 'example_info_file.libraries.info',
],
];
$actual = \Drupal::service('libraries.manager')->scan_info_files();
dump('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
dump('Actual:<pre>' . var_export($actual, TRUE) . '</pre>');
$this->assertEquals($actual, $expected, 'libraries_scan_info_files() correctly finds the example info file.');
dump('<pre>' . var_export($actual, TRUE) . '</pre>');
}
/**
* Tests libraries_info().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment