Commit a23ec80e authored by Bas de Nooijer's avatar Bas de Nooijer

- fixed some test issues

parent 6733aa36
...@@ -48,17 +48,19 @@ class Solarium_Client_Request_PingTest extends PHPUnit_Framework_TestCase ...@@ -48,17 +48,19 @@ class Solarium_Client_Request_PingTest extends PHPUnit_Framework_TestCase
public function testGetMethod() public function testGetMethod()
{ {
$request = new Solarium_Client_Request_Ping($this->_options, $this->_query);
$this->assertEquals( $this->assertEquals(
Solarium_Client_Request::HEAD, Solarium_Client_Request::HEAD,
$this->_getRequest($this->_options)->getMethod() $request->getMethod()
); );
} }
public function testGetUri() public function testGetUri()
{ {
$request = new Solarium_Client_Request_Ping($this->_options, $this->_query);
$this->assertEquals( $this->assertEquals(
'http://127.0.0.1:80/solr/admin/ping?', 'http://127.0.0.1:80/solr/admin/ping?',
$this->_getRequest($this->_options)->getUri() $request->getUri()
); );
} }
......
...@@ -48,17 +48,19 @@ class Solarium_Client_Request_UpdateTest extends PHPUnit_Framework_TestCase ...@@ -48,17 +48,19 @@ class Solarium_Client_Request_UpdateTest extends PHPUnit_Framework_TestCase
public function testGetMethod() public function testGetMethod()
{ {
$request = new Solarium_Client_Request_Update($this->_options, $this->_query);
$this->assertEquals( $this->assertEquals(
Solarium_Client_Request::POST, Solarium_Client_Request::POST,
$this->_getRequest($this->_options)->getMethod() $request->getMethod()
); );
} }
public function testGetUri() public function testGetUri()
{ {
$request = new Solarium_Client_Request_Update($this->_options, $this->_query);
$this->assertEquals( $this->assertEquals(
'http://127.0.0.1:80/solr/update?wt=json', 'http://127.0.0.1:80/solr/update?wt=json',
$this->_getRequest($this->_options)->getUri() $request->getUri()
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment