|
@@ 201-211 (lines=11) @@
|
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
|
| 201 |
|
public function testSetList() |
| 202 |
|
{ |
| 203 |
|
$this->mock->expects( $this->once() )->method( 'set' ) |
| 204 |
|
->with( |
| 205 |
|
$this->equalTo( 'key' ), $this->equalTo( 'value' ), |
| 206 |
|
$this->equalTo( array( 'tag' ) ), $this->greaterThan( 0 ) |
| 207 |
|
); |
| 208 |
|
|
| 209 |
|
$expires = array( 'key' => '2000-01-01 00:00:00' ); |
| 210 |
|
$this->object->setList( array( 'key' => 'value' ), array( 'key' => array( 'tag' ) ), $expires ); |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
|
| 214 |
|
public function testSetListWithSiteId() |
|
@@ 214-225 (lines=12) @@
|
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
|
| 214 |
|
public function testSetListWithSiteId() |
| 215 |
|
{ |
| 216 |
|
$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock ); |
| 217 |
|
|
| 218 |
|
$this->mock->expects( $this->once() )->method( 'set' ) |
| 219 |
|
->with( |
| 220 |
|
$this->equalTo( '1-key' ), $this->equalTo( 'value' ), |
| 221 |
|
$this->equalTo( array( '1-siteid', '1-tag' ) ), $this->equalTo( null ) |
| 222 |
|
); |
| 223 |
|
|
| 224 |
|
$object->setList( array( 'key' => 'value' ), array( 'key' => array( 'tag' ) ), array() ); |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
} |
| 228 |
|
|