@@ 809-817 (lines=9) @@ | ||
806 | * @depends testLookup |
|
807 | * @group virtual |
|
808 | */ |
|
809 | public function testLookupVirtualUrlAlias($url, $id) |
|
810 | { |
|
811 | $handler = $this->getHandler(); |
|
812 | $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location_custom.php'); |
|
813 | ||
814 | $urlAlias = $handler->lookup($url); |
|
815 | ||
816 | $this->assertVirtualUrlAliasValid($urlAlias, $id); |
|
817 | } |
|
818 | ||
819 | public function providerForTestLookupResourceUrlAlias() |
|
820 | { |
|
@@ 3075-3083 (lines=9) @@ | ||
3072 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::loadUrlAlias |
|
3073 | * @dataProvider providerForTestLookupVirtualUrlAlias |
|
3074 | */ |
|
3075 | public function testLoadVirtualUrlAlias($url, $id) |
|
3076 | { |
|
3077 | $handler = $this->getHandler(); |
|
3078 | $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location_custom.php'); |
|
3079 | ||
3080 | $urlAlias = $handler->loadUrlAlias($id); |
|
3081 | ||
3082 | $this->assertVirtualUrlAliasValid($urlAlias, $id); |
|
3083 | } |
|
3084 | ||
3085 | protected function getHistoryAlias() |
|
3086 | { |