mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/9983] Add a purge test.
PHPBB3-9983
This commit is contained in:
15
tests/cache/common_test_case.php
vendored
15
tests/cache/common_test_case.php
vendored
@@ -21,4 +21,19 @@ abstract class phpbb_cache_common_test_case extends phpbb_database_test_case
|
||||
'File ACM put and get'
|
||||
);
|
||||
}
|
||||
|
||||
public function test_purge()
|
||||
{
|
||||
$this->driver->put('test_key', 'test_value');
|
||||
|
||||
$this->assertEquals(
|
||||
'test_value',
|
||||
$this->driver->get('test_key'),
|
||||
'File ACM put and get'
|
||||
);
|
||||
|
||||
$this->driver->purge();
|
||||
|
||||
$this->assertSame(false, $this->driver->get('test_key'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user