Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
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
222
Merge Requests
222
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
drupal
Commits
878a4162
Commit
878a4162
authored
Feb 12, 2013
by
Dries
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '8.x' of git.drupal.org:project/drupal into 8.x
parents
9e8c184e
0e514af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
core/modules/system/lib/Drupal/system/Tests/Bootstrap/GetFilenameUnitTest.php
...lib/Drupal/system/Tests/Bootstrap/GetFilenameUnitTest.php
+4
-1
No files found.
core/modules/system/lib/Drupal/system/Tests/Bootstrap/GetFilenameUnitTest.php
View file @
878a4162
...
...
@@ -17,7 +17,7 @@ class GetFilenameUnitTest extends UnitTestBase {
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Get filename test'
,
'description'
=>
'Test that drupal_get_filename() works correctly
when the file is not found in the database
.'
,
'description'
=>
'Test that drupal_get_filename() works correctly.'
,
'group'
=>
'Bootstrap'
,
);
}
...
...
@@ -50,5 +50,8 @@ function testDrupalGetFilename() {
// will automatically check there for 'script' files, just as it does
// for (e.g.) 'module' files in core/modules.
$this
->
assertIdentical
(
drupal_get_filename
(
'script'
,
'test'
),
'core/scripts/test/test.script'
);
// Searching for an item that does not exist returns NULL.
$this
->
assertNull
(
drupal_get_filename
(
'module'
,
uniqid
(
""
,
TRUE
)),
'Searching for an item that does not exist returns NULL.'
);
}
}
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