|
@@ 2895-2905 (lines=11) @@
|
| 2892 |
|
* |
| 2893 |
|
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied |
| 2894 |
|
*/ |
| 2895 |
|
public function testLocationCopiedHistoryNotCopied() |
| 2896 |
|
{ |
| 2897 |
|
$this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class); |
| 2898 |
|
|
| 2899 |
|
$handler = $this->getHandler(); |
| 2900 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php'); |
| 2901 |
|
|
| 2902 |
|
$handler->locationCopied(4, 400, 3); |
| 2903 |
|
|
| 2904 |
|
$handler->lookup('move-here/move-this-history'); |
| 2905 |
|
} |
| 2906 |
|
|
| 2907 |
|
/** |
| 2908 |
|
* Test for the locationCopied() method. |
|
@@ 2912-2922 (lines=11) @@
|
| 2909 |
|
* |
| 2910 |
|
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::locationCopied |
| 2911 |
|
*/ |
| 2912 |
|
public function testLocationCopiedSubtreeHistoryNotCopied() |
| 2913 |
|
{ |
| 2914 |
|
$this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class); |
| 2915 |
|
|
| 2916 |
|
$handler = $this->getHandler(); |
| 2917 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_copy.php'); |
| 2918 |
|
|
| 2919 |
|
$handler->locationCopied(4, 400, 3); |
| 2920 |
|
|
| 2921 |
|
$handler->lookup('move-here/move-this/sub1/sub2-history'); |
| 2922 |
|
} |
| 2923 |
|
|
| 2924 |
|
/** |
| 2925 |
|
* Test for the locationCopied() method. |