@@ 961-968 (lines=8) @@ | ||
958 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::lookup |
|
959 | * @depends testLookup |
|
960 | */ |
|
961 | public function testLookupUppercaseIri() |
|
962 | { |
|
963 | $handler = $this->getHandler(); |
|
964 | $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location_iri.php'); |
|
965 | ||
966 | $urlAlias = $handler->lookup('΀'); |
|
967 | self::assertInstanceOf(UrlAlias::class, $urlAlias); |
|
968 | } |
|
969 | ||
970 | protected function assertVirtualUrlAliasValid(UrlAlias $urlAlias, $id) |
|
971 | { |
|
@@ 50-57 (lines=8) @@ | ||
47 | * @group case-correction |
|
48 | * @group multiple-languages |
|
49 | */ |
|
50 | public function testLookup() |
|
51 | { |
|
52 | $handler = $this->getHandler(); |
|
53 | $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location.php'); |
|
54 | ||
55 | $urlAlias = $handler->lookup('jedan'); |
|
56 | self::assertInstanceOf(UrlAlias::class, $urlAlias); |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * Test for the lookup() method. |