|
@@ 2849-2857 (lines=9) @@
|
| 2846 |
|
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied |
| 2847 |
|
* @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException |
| 2848 |
|
*/ |
| 2849 |
|
public function testLocationCopiedHistoryNotCopied() |
| 2850 |
|
{ |
| 2851 |
|
$handler = $this->getHandler(); |
| 2852 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php'); |
| 2853 |
|
|
| 2854 |
|
$handler->locationCopied(4, 400, 3); |
| 2855 |
|
|
| 2856 |
|
$handler->lookup('move-here/move-this-history'); |
| 2857 |
|
} |
| 2858 |
|
|
| 2859 |
|
/** |
| 2860 |
|
* Test for the locationCopied() method. |
|
@@ 2865-2873 (lines=9) @@
|
| 2862 |
|
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied |
| 2863 |
|
* @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException |
| 2864 |
|
*/ |
| 2865 |
|
public function testLocationCopiedSubtreeHistoryNotCopied() |
| 2866 |
|
{ |
| 2867 |
|
$handler = $this->getHandler(); |
| 2868 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php'); |
| 2869 |
|
|
| 2870 |
|
$handler->locationCopied(4, 400, 3); |
| 2871 |
|
|
| 2872 |
|
$handler->lookup('move-here/move-this/sub1/sub2-history'); |
| 2873 |
|
} |
| 2874 |
|
|
| 2875 |
|
/** |
| 2876 |
|
* Test for the locationCopied() method. |