@@ 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. |
|
@@ 959-966 (lines=8) @@ | ||
956 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::lookup |
|
957 | * @depends testLookup |
|
958 | */ |
|
959 | public function testLookupUppercaseIri() |
|
960 | { |
|
961 | $handler = $this->getHandler(); |
|
962 | $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location_iri.php'); |
|
963 | ||
964 | $urlAlias = $handler->lookup('΀'); |
|
965 | self::assertInstanceOf(UrlAlias::class, $urlAlias); |
|
966 | } |
|
967 | ||
968 | protected function assertVirtualUrlAliasValid(UrlAlias $urlAlias, $id) |
|
969 | { |