Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
50919a79
Commit
50919a79
authored
Jun 05, 2013
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2003342
by jhedstrom: Convert system module's database unit tests to phpunit.
parent
7166d890
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php
core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php
+4
-6
No files found.
core/
modules/system/lib/Drupal/system/Tests
/Database/EmptyStatementTest.php
→
core/
tests/Drupal/Tests/Core
/Database/EmptyStatementTest.php
View file @
50919a79
...
...
@@ -5,16 +5,16 @@
* Definition of Drupal\system\Tests\Database\EmptyStatementTest.
*/
namespace
Drupal\
system\
Tests\Database
;
namespace
Drupal\Tests
\Core
\Database
;
use
Drupal\Core\Database\StatementEmpty
;
use
Drupal\Core\Database\StatementInterface
;
use
Drupal\
simpletest
\UnitTest
B
ase
;
use
Drupal\
Tests
\UnitTest
C
ase
;
/**
* Tests the empty pseudo-statement class.
*/
class
EmptyStatementTest
extends
UnitTest
B
ase
{
class
EmptyStatementTest
extends
UnitTest
C
ase
{
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Empty statement'
,
...
...
@@ -43,8 +43,6 @@ function testEmptyIteration() {
$this
->
fail
(
'Iterating empty result set should not iterate.'
);
return
;
}
$this
->
pass
(
'Iterating empty result set skipped iteration.'
);
}
/**
...
...
@@ -53,6 +51,6 @@ function testEmptyIteration() {
function
testEmptyFetchAll
()
{
$result
=
new
StatementEmpty
();
$this
->
assertEqual
(
$result
->
fetchAll
(),
array
(),
'Empty array returned from empty result set.'
);
$this
->
assertEqual
s
(
$result
->
fetchAll
(),
array
(),
'Empty array returned from empty result set.'
);
}
}
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