|
@@ 468-475 (lines=8) @@
|
| 465 |
|
$this->assertFromUrl("/black+decker/q/index.html?z=i13-R-6-%26", "black&deckerR"); |
| 466 |
|
} |
| 467 |
|
|
| 468 |
|
public function assertFromUrlWithReplace() |
| 469 |
|
{ |
| 470 |
|
$this->beautifier->setSearchMapping("q") |
| 471 |
|
->addRefinementMapping("d", "department") |
| 472 |
|
->addRefinementMapping("c", "category") |
| 473 |
|
->setAppend("/index.html"); |
| 474 |
|
$this->assertFromUrl("/mice/wireless/dell/cdq/index.html?z=1-M-i14-123-18-D", "Dell", "Mice", "wireless123"); |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
public function assertFromUrlWithReplaceFullUrl() |
| 478 |
|
{ |
|
@@ 477-485 (lines=9) @@
|
| 474 |
|
$this->assertFromUrl("/mice/wireless/dell/cdq/index.html?z=1-M-i14-123-18-D", "Dell", "Mice", "wireless123"); |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
public function assertFromUrlWithReplaceFullUrl() |
| 478 |
|
{ |
| 479 |
|
$this->beautifier->setSearchMapping("q") |
| 480 |
|
->addRefinementMapping("d", "department") |
| 481 |
|
->addRefinementMapping("c", "category") |
| 482 |
|
->setAppend("/index.html"); |
| 483 |
|
$this->assertFromUrl("www.example.com/mice/wireless/dell/cdq/index.html?z=1-M-i14-123-18-D", "Dell", "Mice", |
| 484 |
|
"wireless123"); |
| 485 |
|
} |
| 486 |
|
|
| 487 |
|
public function testSimpleToUrlOneReplace() |
| 488 |
|
{ |