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

fix(cleanup): Issue #3297522 by podarok: Remove test

parent 41b235b6
No related branches found
No related tags found
No related merge requests found
...@@ -125,16 +125,6 @@ class LibrariesWebTest extends BrowserTestBase { ...@@ -125,16 +125,6 @@ class LibrariesWebTest extends BrowserTestBase {
'post-load callback' => 'not applied', 'post-load callback' => 'not applied',
'module' => 'libraries_test', 'module' => 'libraries_test',
]; ];
// Test a callback in the 'info' group.
$expected['info callback'] = 'applied (top-level)';
$expected['versions']['1']['info callback'] = 'applied (version 1)';
$expected['versions']['1']['variants']['example_variant']['info callback'] = 'applied (version 1, variant example_variant)';
$expected['variants']['example_variant']['info callback'] = 'applied (variant example_variant)';
$library = \Drupal::service('libraries.manager')->info('example_callback');
dump('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
dump('Actual:<pre>' . var_export($library, TRUE) . '</pre>');
$this->assertEquals($library, $expected, 'Prepare callback was applied correctly.');
// Test a callback in the 'pre-detect' and 'post-detect' phases. // Test a callback in the 'pre-detect' and 'post-detect' phases.
// Successfully detected libraries should only contain version information // Successfully detected libraries should only contain version information
......
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