Commit d6e46486 authored by Laurent's avatar Laurent

dev #58112 test fix

parent 0e9ce7fb
Pipeline #1124 failed with stage
in 10 minutes and 33 seconds
......@@ -261,7 +261,7 @@ class Class_Newsletter extends Storm_Model_Abstract {
protected function _getRecordUrlWithoutRouter($record) {
return sprintf('http://%s/recherche/viewnotice/id/%d',
return sprintf('%s/recherche/viewnotice/id/%d',
Class_Url::siteUrl(),
$record->getId());
}
......
......@@ -97,6 +97,7 @@ class LeKioskLinkModeSSOTest extends LeKioskLinkModeLinkTestCase {
parent::setUp();
$_SERVER['HTTP_REFERER'] = 'http://localhost/view/notice';
Class_Url::setBaseUrl('/bokeh');
Zend_Controller_Front::getInstance()
->getRouter()
->route(new Zend_Controller_Request_Http('http://localhost/'));
......@@ -107,7 +108,7 @@ class LeKioskLinkModeSSOTest extends LeKioskLinkModeLinkTestCase {
/** @test */
public function linkShouldBeCasUrlWithLeKioskId() {
$url = 'https://apipros.lekiosk.com/login/cas?'
.'cas_fournisseur=' . urlencode(Class_Url::siteUrl() . '/cas-server-v10')
.'cas_fournisseur=' . urlencode(Class_Url::rootUrl() . BASE_URL . '/cas-server-v10')
.'&id=29'
.'&ReturnUrl=';
......
......@@ -19,11 +19,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class UrlBaseUrlTest extends PHPUnit_Framework_TestCase {
protected $_server_backup;
class UrlBaseUrlTest extends ModelTestCase {
protected
$_storm_default_to_volatile = true,
$_server_backup;
public function setUp() {
parent::setUp();
Class_AdminVar::set('NOM_DOMAINE', '');
Class_Url::setBaseUrl('');
$this->_server_backup = $_SERVER;
}
......
Markdown is supported
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