| @@ 322-339 (lines=18) @@ | ||
| 319 | * |
|
| 320 | * @depends testCreateGlobalUrlAlias |
|
| 321 | */ |
|
| 322 | public function testCreateGlobalUrlAliasPropertyValues(URLAlias $createdUrlAlias) |
|
| 323 | { |
|
| 324 | $this->assertNotNull($createdUrlAlias->id); |
|
| 325 | ||
| 326 | $this->assertPropertiesCorrect( |
|
| 327 | [ |
|
| 328 | 'type' => URLAlias::RESOURCE, |
|
| 329 | 'destination' => 'content/search?SearchText=eZ', |
|
| 330 | 'path' => '/Home/My-New-Site', |
|
| 331 | 'languageCodes' => ['eng-US'], |
|
| 332 | 'alwaysAvailable' => false, |
|
| 333 | 'isHistory' => false, |
|
| 334 | 'isCustom' => true, |
|
| 335 | 'forward' => false, |
|
| 336 | ], |
|
| 337 | $createdUrlAlias |
|
| 338 | ); |
|
| 339 | } |
|
| 340 | ||
| 341 | /** |
|
| 342 | * Test for the createGlobalUrlAlias() method. |
|
| @@ 374-391 (lines=18) @@ | ||
| 371 | * |
|
| 372 | * @depends testCreateGlobalUrlAliasWithForward |
|
| 373 | */ |
|
| 374 | public function testCreateGlobalUrlAliasWithForwardPropertyValues(URLAlias $createdUrlAlias) |
|
| 375 | { |
|
| 376 | $this->assertNotNull($createdUrlAlias->id); |
|
| 377 | ||
| 378 | $this->assertPropertiesCorrect( |
|
| 379 | [ |
|
| 380 | 'type' => URLAlias::RESOURCE, |
|
| 381 | 'destination' => 'content/search?SearchText=eZ', |
|
| 382 | 'path' => '/Home/My-New-Site', |
|
| 383 | 'languageCodes' => ['eng-US'], |
|
| 384 | 'alwaysAvailable' => false, |
|
| 385 | 'isHistory' => false, |
|
| 386 | 'isCustom' => true, |
|
| 387 | 'forward' => true, |
|
| 388 | ], |
|
| 389 | $createdUrlAlias |
|
| 390 | ); |
|
| 391 | } |
|
| 392 | ||
| 393 | /** |
|
| 394 | * Test for the createGlobalUrlAlias() method. |
|
| @@ 427-444 (lines=18) @@ | ||
| 424 | * |
|
| 425 | * @depends testCreateGlobalUrlAliasWithAlwaysAvailable |
|
| 426 | */ |
|
| 427 | public function testCreateGlobalUrlAliasWithAlwaysAvailablePropertyValues(URLAlias $createdUrlAlias) |
|
| 428 | { |
|
| 429 | $this->assertNotNull($createdUrlAlias->id); |
|
| 430 | ||
| 431 | $this->assertPropertiesCorrect( |
|
| 432 | [ |
|
| 433 | 'type' => URLAlias::RESOURCE, |
|
| 434 | 'destination' => 'content/search?SearchText=eZ', |
|
| 435 | 'path' => '/Home/My-New-Site', |
|
| 436 | 'languageCodes' => ['eng-US'], |
|
| 437 | 'alwaysAvailable' => true, |
|
| 438 | 'isHistory' => false, |
|
| 439 | 'isCustom' => true, |
|
| 440 | 'forward' => false, |
|
| 441 | ], |
|
| 442 | $createdUrlAlias |
|
| 443 | ); |
|
| 444 | } |
|
| 445 | ||
| 446 | /** |
|
| 447 | * Test for the createUrlAlias() method. |
|