Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
libraries
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
libraries
Commits
14049c1e
Commit
14049c1e
authored
2 years ago
by
Andrii Podanenko
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/LibrariesWebTest.php
+0
-18
0 additions, 18 deletions
tests/src/Functional/LibrariesWebTest.php
with
0 additions
and
18 deletions
tests/src/Functional/LibrariesWebTest.php
+
0
−
18
View file @
14049c1e
...
...
@@ -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().
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment