|
@@ 49-56 (lines=8) @@
|
| 46 |
|
* @group case-correction |
| 47 |
|
* @group multiple-languages |
| 48 |
|
*/ |
| 49 |
|
public function testLookup() |
| 50 |
|
{ |
| 51 |
|
$handler = $this->getHandler(); |
| 52 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location.php'); |
| 53 |
|
|
| 54 |
|
$urlAlias = $handler->lookup('jedan'); |
| 55 |
|
self::assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\UrlAlias', $urlAlias); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
/** |
| 59 |
|
* Test for the lookup() method. |
|
@@ 942-949 (lines=8) @@
|
| 939 |
|
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::lookup |
| 940 |
|
* @depends testLookup |
| 941 |
|
*/ |
| 942 |
|
public function testLookupUppercaseIri() |
| 943 |
|
{ |
| 944 |
|
$handler = $this->getHandler(); |
| 945 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location_iri.php'); |
| 946 |
|
|
| 947 |
|
$urlAlias = $handler->lookup('΀'); |
| 948 |
|
self::assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\UrlAlias', $urlAlias); |
| 949 |
|
} |
| 950 |
|
|
| 951 |
|
protected function assertVirtualUrlAliasValid(UrlAlias $urlAlias, $id) |
| 952 |
|
{ |