|
|
@@ -101,12 +101,32 @@ class Zend_Cache_sqliteBackendTest extends Zend_Cache_CommonExtendedBackendTest
|
|
|
'automatic_vacuum_factor' => 1
|
|
|
));
|
|
|
parent::setUp();
|
|
|
+
|
|
|
$this->assertTrue($this->_instance->remove('bar'));
|
|
|
$this->assertFalse($this->_instance->test('bar'));
|
|
|
$this->assertFalse($this->_instance->remove('barbar'));
|
|
|
$this->assertFalse($this->_instance->test('barbar'));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @group ZF-11640
|
|
|
+ */
|
|
|
+ public function testRemoveCorrectCallWithVacuumOnMemoryDb()
|
|
|
+ {
|
|
|
+ $this->_instance = new Zend_Cache_Backend_Sqlite(array(
|
|
|
+ 'cache_db_complete_path' => ':memory:',
|
|
|
+ 'automatic_vacuum_factor' => 1
|
|
|
+ ));
|
|
|
+ parent::setUp();
|
|
|
+
|
|
|
+ $this->assertGreaterThan(0, $this->_instance->test('bar2'));
|
|
|
+
|
|
|
+ $this->assertTrue($this->_instance->remove('bar'));
|
|
|
+ $this->assertFalse($this->_instance->test('bar'));
|
|
|
+
|
|
|
+ $this->assertGreaterThan(0, $this->_instance->test('bar2'));
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|