Skip to content
Snippets Groups Projects
Commit c556c028 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #61350: fix failures

parent a690d310
Branches
Tags
2 merge requests!2380Dev#61350 entrepot oai gallica europeana,!2373Dev#61350 entrepot oai gallica europeana
Pipeline #2712 failed with stage
in 20 minutes and 27 seconds
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once 'AbstractControllerTestCase.php';
......@@ -130,7 +130,7 @@ class OAIControllerGetRecordNotSupportedPrefixTest extends OAIControllerGetRecor
->setTitrePrincipal('Harry Potter a l\'ecole des sorciers')
->setDateMaj('2001-12-14 11:39:44'));
$this->dispatch('/opac/oai/request?verb=GetRecord&metadataPrefix=not_supported&identifier=harrypotter-sorciers');
$this->dispatch('/opac/oai/request?verb=GetRecord&metadataPrefix=not_supported&identifier=harrypotter-sorciers');
$this->_xml = $this->_response->getBody();
}
......@@ -156,14 +156,14 @@ class OAIControllerGetRecordValidParamsTest extends OAIControllerGetRecordTestCa
public function setUp() {
parent::setUp();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Notice')
->whenCalled('getNoticeByClefAlpha')
->with('harrypotter-sorciers')
->answers(Class_Notice::getLoader()
->newInstanceWithId(4)
->setClefAlpha('harrypotter-sorciers')
->setTitrePrincipal('Harry Potter a l\'ecole des sorciers')
->setDateMaj('2001-12-14 11:39:44'));
$this->onLoaderOfModel('Class_Notice')
->whenCalled('getNoticeByClefAlpha')
->with('harrypotter-sorciers')
->answers(Class_Notice::newInstanceWithId(4)
->setClefAlpha('harrypotter-sorciers')
->setTitrePrincipal('Harry Potter a l\'ecole des sorciers')
->setCreatedAt('2001-12-14')
->setDateMaj('2017-10-09 11:39:44'));
$this->dispatch('/opac/oai/request?verb=GetRecord&metadataPrefix=oai_dc&identifier=harrypotter-sorciers', true);
$this->_xml = $this->_response->getBody();
......
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