Skip to content
Snippets Groups Projects
Commit b9418311 authored by llaffont's avatar llaffont
Browse files

Correction ErrorController du téléphone + tests

parent 3214d79f
No related merge requests found
......@@ -3501,6 +3501,7 @@ tests/application/modules/telephone/controllers/AuthControllerTest.php -text
tests/application/modules/telephone/controllers/BibNumeriqueControllerTest.php -text
tests/application/modules/telephone/controllers/BlogControllerTest.php -text
tests/application/modules/telephone/controllers/CmsControllerTest.php -text
tests/application/modules/telephone/controllers/ErrorControllerTest.php -text
tests/application/modules/telephone/controllers/IndexControllerTest.php -text
tests/application/modules/telephone/controllers/RechercheControllerHarryPotterTest.php -text
tests/application/modules/telephone/controllers/RechercheControllerTest.php -text
......
......@@ -23,4 +23,6 @@ require_once ROOT_PATH.'application/modules/opac/controllers/ErrorController.php
class Telephone_ErrorController extends ErrorController {
}
\ No newline at end of file
}
?>
\ No newline at end of file
<?php
/**
* Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
*
* AFI-OPAC 2.0 is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* AFI-OPAC 2.0 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once 'AbstractControllerTestCase.php';
class Telephone_ErrorControllerTest extends TelephoneAbstractControllerTestCase {
public function setUp() {
parent::setUp();
$this->dispatch('/telephone/non-existing-controller/unknown-action');
}
/** @test */
public function controllerShouldBeError() {
$this->assertController('error');
}
/** @test */
public function moduleShouldBeTelephone() {
$this->assertModule('telephone');
}
/** @test */
public function actionShouldBeError() {
$this->assertAction('error');
}
}
?>
\ No newline at end of file
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