From 4eaf70c4a683a15a557f619fcead1666dfd981e1 Mon Sep 17 00:00:00 2001 From: Ghislain Loas <ghislo@sandbox.pergame.net> Date: Fri, 9 Oct 2015 11:43:34 +0200 Subject: [PATCH] fix tests failures --- .../modules/admin/controllers/OaiControllerTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/application/modules/admin/controllers/OaiControllerTest.php b/tests/application/modules/admin/controllers/OaiControllerTest.php index c411603899d..e0ed8bfb0f0 100644 --- a/tests/application/modules/admin/controllers/OaiControllerTest.php +++ b/tests/application/modules/admin/controllers/OaiControllerTest.php @@ -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 'AdminAbstractControllerTestCase.php'; @@ -94,7 +94,7 @@ class Admin_OaiControllerAddActionTest extends Admin_OaiControllerTestCase { $this->dispatch('/admin/oai/add'); } - + /** @test */ public function pageShouldRenderEntrepotForm() { $this->assertXPath('//input[@name="libelle"]'); @@ -110,7 +110,7 @@ class Admin_OaiControllerEditActionTest extends Admin_OaiControllerTestCase { $this->dispatch('/admin/oai/edit/id/4'); } - + /** @test */ public function pageShouldRenderEntrepotForm() { $this->assertXPath('//input[@name="libelle"][@value="Gallica"]'); @@ -150,7 +150,7 @@ class Admin_OaiControllerBrowseGallicaActionTest extends Admin_OaiControllerTest class Admin_OaiControllerImportIsaacAsimovFoundationTest extends Admin_OaiControllerTestCase { protected $_new_album; - + public function setUp() { parent::setUp(); Storm_Test_ObjectWrapper::onLoaderOfModel('Class_AlbumCategorie') @@ -211,7 +211,7 @@ class Admin_OaiControllerImportIsaacAsimovFoundationTest extends Admin_OaiContro /** @test */ public function idOrigineShouldBeArk() { - $this->assertEquals('http://gallica.bnf.fr/ark:/12148/bpt6k86704c', + $this->assertEquals('http://gallica.bnf.fr/ark:/12148/bpt6k86704c', $this->_new_album->getIdOrigine()); } @@ -263,7 +263,7 @@ class Admin_OaiControllerIndexWithSearchActionTest extends Admin_OaiControllerSe ->answers(1) ->whenCalled('fetchAll') - ->with("select id from oai_notices where MATCH(recherche) AGAINST('+(POMME POMMES POM)' IN BOOLEAN MODE) order by alpha_titre LIMIT 0,10", + ->with("select id from oai_notices where MATCH(recherche) AGAINST('+(POMME POMMES POM)' IN BOOLEAN MODE) order by alpha_titre LIMIT 0,100", false) ->answers(array(array('id' => 2))); -- GitLab