Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
881e7308
Commit
881e7308
authored
May 15, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- unittest improvements
parent
5cf3455e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
phpunit.xml.dist
phpunit.xml.dist
+3
-0
tests/Solarium/Query/Update/Command/AddTest.php
tests/Solarium/Query/Update/Command/AddTest.php
+16
-0
No files found.
phpunit.xml.dist
View file @
881e7308
...
...
@@ -21,6 +21,9 @@
<whitelist>
<directory
suffix=
".php"
>
library
</directory>
</whitelist>
<blacklist>
<file>
library/Solarium/Autoloader.php
</file>
</blacklist>
</filter>
</phpunit>
tests/Solarium/Query/Update/Command/AddTest.php
View file @
881e7308
...
...
@@ -67,6 +67,22 @@ class Solarium_Query_Update_Command_AddTest extends PHPUnit_Framework_TestCase
);
}
public
function
testAddDocumentsMultipleTimes
()
{
$doc1
=
new
Solarium_Document_ReadWrite
(
array
(
'id'
=>
1
));
$doc2
=
new
Solarium_Document_ReadWrite
(
array
(
'id'
=>
2
));
$this
->
_command
->
addDocuments
(
array
(
$doc1
,
$doc2
));
$doc3
=
new
Solarium_Document_ReadWrite
(
array
(
'id'
=>
3
));
$doc4
=
new
Solarium_Document_ReadWrite
(
array
(
'id'
=>
4
));
$this
->
_command
->
addDocuments
(
array
(
$doc3
,
$doc4
));
$this
->
assertEquals
(
array
(
$doc1
,
$doc2
,
$doc3
,
$doc4
),
$this
->
_command
->
getDocuments
()
);
}
public
function
testAddDocumentsIteration
()
{
$doc1
=
new
Solarium_Document_ReadWrite
(
array
(
'id'
=>
1
));
...
...
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