|
@@ 89-95 (lines=7) @@
|
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
|
| 89 |
|
public function testTransformSlashes() |
| 90 |
|
{ |
| 91 |
|
$this->mockRouter->expects( $this->once() )->method( 'resolve' ) |
| 92 |
|
->will( $this->returnValue( 'shop/catalog/lists?test=a%2Fb') ); |
| 93 |
|
|
| 94 |
|
$this->assertEquals( '/index.php/shop/catalog/lists?test=a%2Fb', $this->object->transform( 'shop', 'catalog', 'lists', array( 'test' => 'a/b' ) ) ); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
|
| 98 |
|
public function testTransformArrays() |
|
@@ 98-104 (lines=7) @@
|
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
|
| 98 |
|
public function testTransformArrays() |
| 99 |
|
{ |
| 100 |
|
$this->mockRouter->expects( $this->once() )->method( 'resolve' ) |
| 101 |
|
->will( $this->returnValue( 'shop/catalog/list?test%5B0%5D=a&test%5B1%5D=b') ); |
| 102 |
|
|
| 103 |
|
$this->assertEquals( '/index.php/shop/catalog/list?test%5B0%5D=a&test%5B1%5D=b', $this->object->transform( 'shop', 'catalog', 'lists', array( 'test' => array( 'a', 'b' ) ) ) ); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
|
| 107 |
|
public function testTransformTrailing() |
|
@@ 107-113 (lines=7) @@
|
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
|
| 107 |
|
public function testTransformTrailing() |
| 108 |
|
{ |
| 109 |
|
$this->mockRouter->expects( $this->once() )->method( 'resolve' ) |
| 110 |
|
->will( $this->returnValue( 'shop/catalog/lists') ); |
| 111 |
|
|
| 112 |
|
$this->assertEquals( '/index.php/shop/catalog/lists#a/b', $this->object->transform( 'shop', 'catalog', 'lists', array(), array( 'a', 'b' ) ) ); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
|
| 116 |
|
public function testTransformAbsolute() |