Skip to content
Snippets Groups Projects
Commit 23cbbc51 authored by pbarroca's avatar pbarroca
Browse files

Test: correction oubli parent::setUp()

parent a64571b5
Branches
Tags
No related merge requests found
......@@ -24,6 +24,7 @@ class OaiControllerRequestTest extends AbstractControllerTestCase {
protected $_xpath;
public function setUp() {
parent::setUp();
$this->dispatch('/opac/oai/request?verb=Identify');
$this->_xpath = new Storm_Test_XPathXML();
$this->_xpath->registerNameSpace('oai', 'http://www.openarchives.org/OAI/2.0/');
......@@ -38,13 +39,13 @@ class OaiControllerRequestTest extends AbstractControllerTestCase {
/** @test */
public function acionShouldBeRequest() {
public function actionShouldBeRequest() {
$this->assertAction('request');
}
/** @test */
public function IdentifyShouldReturnIdentifyResponse() {
public function identifyShouldReturnIdentifyResponse() {
$this->_xpath->assertXPath($this->_response->getBody(),
'//oai:request[@verb="Identify"]');
}
......
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