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
14c6c16f
Commit
14c6c16f
authored
Sep 12, 2013
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix in test, see issue #198
parent
d822065e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tests/Solarium/Tests/QueryType/Analysis/Query/DocumentTest.php
.../Solarium/Tests/QueryType/Analysis/Query/DocumentTest.php
+4
-3
No files found.
tests/Solarium/Tests/QueryType/Analysis/Query/DocumentTest.php
View file @
14c6c16f
...
...
@@ -31,6 +31,7 @@
namespace
Solarium\Tests\QueryType\Analysis\Query
;
use
Solarium\QueryType\Analysis\Query\Document
;
use
Solarium\QueryType\Select\Result\Document
as
ReadOnlyDocument
;
use
Solarium\Core\Client\Client
;
class
DocumentTest
extends
\PHPUnit_Framework_TestCase
...
...
@@ -63,7 +64,7 @@ class DocumentTest extends \PHPUnit_Framework_TestCase
public
function
testAddAndGetDocument
()
{
$doc
=
new
Document
(
array
(
'id'
=>
1
));
$doc
=
new
ReadOnly
Document
(
array
(
'id'
=>
1
));
$this
->
query
->
addDocument
(
$doc
);
$this
->
assertEquals
(
array
(
$doc
),
...
...
@@ -73,8 +74,8 @@ class DocumentTest extends \PHPUnit_Framework_TestCase
public
function
testAddAndGetDocuments
()
{
$doc1
=
new
Document
(
array
(
'id'
=>
1
));
$doc2
=
new
Document
(
array
(
'id'
=>
2
));
$doc1
=
new
ReadOnly
Document
(
array
(
'id'
=>
1
));
$doc2
=
new
ReadOnly
Document
(
array
(
'id'
=>
2
));
$this
->
query
->
addDocuments
(
array
(
$doc1
,
$doc2
));
$this
->
assertEquals
(
array
(
$doc1
,
$doc2
),
...
...
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