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
076c0c87
Commit
076c0c87
authored
Oct 21, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated unittests for code changes
parent
a90167e1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
tests/Solarium/Client/RequestBuilder/PingTest.php
tests/Solarium/Client/RequestBuilder/PingTest.php
+2
-2
tests/Solarium/Client/ResponseParser/Select/Component/FacetSetTest.php
...m/Client/ResponseParser/Select/Component/FacetSetTest.php
+7
-4
tests/Solarium/Result/PingTest.php
tests/Solarium/Result/PingTest.php
+6
-2
No files found.
tests/Solarium/Client/RequestBuilder/PingTest.php
View file @
076c0c87
...
@@ -38,12 +38,12 @@ class Solarium_Client_RequestBuilder_PingTest extends PHPUnit_Framework_TestCase
...
@@ -38,12 +38,12 @@ class Solarium_Client_RequestBuilder_PingTest extends PHPUnit_Framework_TestCase
$request
=
$builder
->
build
(
new
Solarium_Query_Ping
);
$request
=
$builder
->
build
(
new
Solarium_Query_Ping
);
$this
->
assertEquals
(
$this
->
assertEquals
(
'admin/ping?'
,
'admin/ping?
wt=json
'
,
$request
->
getUri
()
$request
->
getUri
()
);
);
$this
->
assertEquals
(
$this
->
assertEquals
(
Solarium_Client_Request
::
METHOD_
HEAD
,
Solarium_Client_Request
::
METHOD_
GET
,
$request
->
getMethod
()
$request
->
getMethod
()
);
);
}
}
...
...
tests/Solarium/Client/ResponseParser/Select/Component/FacetSetTest.php
View file @
076c0c87
...
@@ -68,9 +68,12 @@ class Solarium_Client_ResponseParser_Select_Component_FacetSetTest extends PHPUn
...
@@ -68,9 +68,12 @@ class Solarium_Client_ResponseParser_Select_Component_FacetSetTest extends PHPUn
'after'
=>
5
,
'after'
=>
5
,
'between'
=>
4
,
'between'
=>
4
,
'counts'
=>
array
(
'counts'
=>
array
(
'1.0'
=>
1
,
'1.0'
,
'101.0'
=>
2
,
1
,
'201.0'
=>
1
,
'101.0'
,
2
,
'201.0'
,
1
,
)
)
)
)
)
)
...
...
tests/Solarium/Result/PingTest.php
View file @
076c0c87
...
@@ -34,7 +34,11 @@ class Solarium_Result_PingTest extends PHPUnit_Framework_TestCase
...
@@ -34,7 +34,11 @@ class Solarium_Result_PingTest extends PHPUnit_Framework_TestCase
public
function
testGetStatus
()
public
function
testGetStatus
()
{
{
$ping
=
new
Solarium_Result_Ping
();
$client
=
new
Solarium_Client
;
$query
=
new
Solarium_Query_Ping
;
$response
=
new
Solarium_Client_Response
(
'{"responseHeader":{"status":1,"QTime":12}}'
,
array
(
'HTTP 1.1 200 OK'
));
$ping
=
new
Solarium_Result_Ping
(
$client
,
$query
,
$response
);
$this
->
assertEquals
(
$this
->
assertEquals
(
0
,
0
,
$ping
->
getStatus
()
$ping
->
getStatus
()
...
...
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