Dieser Commit ist enthalten in:
Ursprung
2b21070b1a
Commit
f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen
24
tests/functional/application/views/helpers/AbsoluteUrlTest.php
Normale Datei
24
tests/functional/application/views/helpers/AbsoluteUrlTest.php
Normale Datei
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
require_once 'PHPUnit/Framework/TestCase.php';
|
||||
require_once 'AbsoluteUrl.php';
|
||||
|
||||
/**
|
||||
* @group MsdViewHelper
|
||||
*/
|
||||
class AbsoluteUrlTest extends ControllerTestCase
|
||||
{
|
||||
public function testCanGetAbsoluteUrl()
|
||||
{
|
||||
$_SERVER['HTTP_SCHEME'] = 'http';
|
||||
$_SERVER['SERVER_PORT'] = 80;
|
||||
|
||||
$this->loginUser();
|
||||
$viewHelper = new Msd_View_Helper_AbsoluteUrl();
|
||||
|
||||
$options = array('controller'=>'sql','action'=>'show.databases');
|
||||
$res = $viewHelper->absoluteUrl($options);
|
||||
$expected = 'http://localhost/sql/show.databases';
|
||||
$this->assertEquals($expected, $res);
|
||||
}
|
||||
|
||||
}
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren