Skip to content
Snippets Groups Projects
Commit 579e85cd authored by efalcy's avatar efalcy
Browse files

#9929 fichiers manquant (patch cosmo)

git-svn-id: http://afi-forge.afi-sa.fr/svn/opacce/trunk@2705 e3cc70dd-a52f-4065-8a26-0e09943c8c5c
parent 9582e068
No related merge requests found
alter table catalogue add column ID_USER int(11) ;
<?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';
abstract class Referent_AbstractControllerTestCase extends AbstractControllerTestCase {
protected function _initProfilHook($profil) {
$profil->setLibelle('AFI');
}
protected function _loginHook($account) {
$account->ROLE = "referent";
$account->ROLE_LEVEL = ZendAfi_Acl_AdminControllerRoles::REFERENT;
$account->LOGIN = "referent";
$account->PSEUDO = "referent";
}
public function setUp() {
parent::setUp();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Users')
->whenCalled('getIdentity')
->answers(Class_Users::getLoader()->newInstanceWithId(777)
->setLogin('referent')
->setRoleLevel(ZendAfi_Acl_AdminControllerRoles::REFERENT)
->setPseudo('referent'));
}
}
class ReferentPortailIndexControllerActionTest extends Referent_AbstractControllerTestCase {
public function setUp() {
parent::setUp();
Class_AdminVar::getLoader()->newInstanceWithId('BIBNUM')
->setValeur(1);
$this->dispatch('/admin/index', true);
}
/** @test */
function menuGaucheShouldContainsSitotheque() {
$this->assertXPathContentContains('//li//a','Sitothèque',$this->_response->getBody());
}
/** @test */
function menuGaucheShouldContainsDomaines() {
$this->assertXPathContentContains('//li//a','Domaines',$this->_response->getBody());
}
/** @test */
function menuGaucheShouldContainsModeration() {
$this->assertXPathContentContains('//li//a','Modération',$this->_response->getBody());
}
/** @test */
function menuGaucheShouldContainsDemandeDinscription() {
$this->assertXPathContentContains('//li//a','Demandes d\'inscription',$this->_response->getBody());
}
/** @test */
function menuGaucheShouldContainsCollections() {
$this->assertXPathContentContains('//li//a','Collections',$this->_response->getBody());
}
/** @test */
function menuGaucheShouldContainsOPDS() {
$this->assertXPathContentContains('//li//a','Catalogues OPDS',$this->_response->getBody());
}
}
?>
\ 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