|
@@ 177-188 (lines=12) @@
|
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
|
| 177 |
|
public function testSetWithSiteId() |
| 178 |
|
{ |
| 179 |
|
$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock ); |
| 180 |
|
|
| 181 |
|
$this->mock->expects( $this->once() )->method( 'set' ) |
| 182 |
|
->with( |
| 183 |
|
$this->equalTo( '1-key' ), $this->equalTo( 'value' ), |
| 184 |
|
$this->equalTo( array( '1-siteid', '1-tag' ) ), $this->equalTo( null ) |
| 185 |
|
); |
| 186 |
|
|
| 187 |
|
$object->set( 'key', 'value', null, array( 'tag' ) ); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
|
| 191 |
|
public function testSetMultiple() |
|
@@ 204-215 (lines=12) @@
|
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
|
| 204 |
|
public function testSetMultipleWithSiteId() |
| 205 |
|
{ |
| 206 |
|
$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock ); |
| 207 |
|
|
| 208 |
|
$this->mock->expects( $this->once() )->method( 'set' ) |
| 209 |
|
->with( |
| 210 |
|
$this->equalTo( '1-key' ), $this->equalTo( 'value' ), |
| 211 |
|
$this->equalTo( array( '1-siteid', '1-tag' ) ), $this->equalTo( null ) |
| 212 |
|
); |
| 213 |
|
|
| 214 |
|
$object->setMultiple( array( 'key' => 'value' ), null, array( 'key' => array( 'tag' ) ) ); |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
} |
| 218 |
|
|