Skip to content
Snippets Groups Projects
Commit d6a973f9 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #50572 fix fatal error

parent fccc15ac
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!1937Dev#50572 2755 contractuel pouvoir gerer un site totalement prive,!1933Dev#50572 2755 contractuel pouvoir gerer un site totalement prive
<?php
/**
* Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
* Copyright (c) 2065, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
......@@ -16,30 +16,26 @@
*
* 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';
abstract class TelephoneAbstractControllerTestCase extends AbstractControllerTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
$_SERVER['HTTP_USER_AGENT'] = 'iPhone';
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Profil')
->whenCalled('findFirstBy')
->with(['BROWSER' => 'telephone'])
->answers(Class_Profil::getCurrentProfil()->beTelephone());
/* $this->fixture('Class_Profil', ['id' => 2,
'browser' => 'telephone'])
->beCurrentProfil();*/
Class_Profil::getCurrentProfil()
->beTelephone()
->assertSave();
}
public function tearDown() {
unset($_SERVER['HTTP_USER_AGENT']);
parent::tearDown();
}
}
?>
\ 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