Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
libraries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
libraries
Commits
442edace
Commit
442edace
authored
Oct 10, 2010
by
Tobias Stoeckler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#542940
: by tstoeckler: Fixed tests broken by previous commit
parent
33bcf472
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/libraries.test
tests/libraries.test
+4
-4
No files found.
tests/libraries.test
View file @
442edace
...
...
@@ -48,7 +48,7 @@ class LibrariesTestCase extends DrupalWebTestCase {
$error
=
t
(
'%library could not be found.'
,
array
(
'%library'
=>
$library
[
'title'
],
));
$this
->
assertEqual
(
$library
[
'error'
],
$error
,
'Non-existing library not found.'
);
$this
->
assertEqual
(
$library
[
'error
message
'
],
$error
,
'Non-existing library not found.'
);
// Test unknown library version.
$library
=
libraries_info
(
'example_undetected_version'
);
...
...
@@ -56,7 +56,7 @@ class LibrariesTestCase extends DrupalWebTestCase {
$error
=
t
(
'The version of %library could not be detected.'
,
array
(
'%library'
=>
$library
[
'title'
],
));
$this
->
assertEqual
(
$library
[
'error'
],
$error
,
'Library version not found.'
);
$this
->
assertEqual
(
$library
[
'error
message
'
],
$error
,
'Library version not found.'
);
// Test unsupported library version.
$library
=
libraries_info
(
'example_unsupported_version'
);
...
...
@@ -65,7 +65,7 @@ class LibrariesTestCase extends DrupalWebTestCase {
'%version'
=>
$library
[
'version'
],
'%library'
=>
$library
[
'title'
],
));
$this
->
assertEqual
(
$library
[
'error'
],
$error
,
'Unsupported library version found.'
);
$this
->
assertEqual
(
$library
[
'error
message
'
],
$error
,
'Unsupported library version found.'
);
// Test supported library version.
$library
=
libraries_info
(
'example_supported_version'
);
...
...
@@ -112,7 +112,7 @@ class LibrariesTestCase extends DrupalWebTestCase {
'%variant'
=>
$variants
[
0
],
'%library'
=>
$library
[
'title'
],
));
$this
->
assertEqual
(
$library
[
'variants'
][
'example_variant'
][
'error'
],
$error
,
'Missing variant not found.'
);
$this
->
assertEqual
(
$library
[
'variants'
][
'example_variant'
][
'error
message
'
],
$error
,
'Missing variant not found.'
);
// Test existing variant.
$library
=
libraries_info
(
'example_variant'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment