icingaweb2/test/php/regression/Bug6284Test.php
Eric Lippmann 5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba41dd6e9178cebec5433eecd614196e.
2015-02-03 16:16:26 +01:00

25 lines
517 B
PHP

<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Tests\Icinga\Regression;
use Icinga\Test\BaseTestCase;
use Icinga\Web\Url;
/**
* Regression-Test for bug #6284
*
* href-helper drops URL fragments.
*
* @see https://dev.icinga.org/issues/6284
*/
class Bug6284Test extends BaseTestCase
{
public function testWhetherUrlFromPathDoesNotDropFragments()
{
$url = 'some/route/with#anchor';
$this->assertEquals($url, Url::fromPath($url)->getRelativeUrl());
}
}