MDL-38565 cache: tidy up pre-integration

Conflicts:
	lib/db/upgrade.php
This commit is contained in:
Sam Hemelryk
2013-04-19 10:11:38 +12:00
parent 1a038ed7d9
commit 6318a38885
4 changed files with 17 additions and 11 deletions
+2 -2
View File
@@ -349,14 +349,14 @@ class cache_phpunit_tests extends advanced_testcase {
$this->assertTrue(true);
}
try {
$cache->get_many(array('exception1', 'exception2'), MUST_EXUST);
$cache->get_many(array('exception1', 'exception2'), MUST_EXIST);
$this->fail('Exception expected from cache::get_many using MUST_EXIST');
} catch (Exception $e) {
$this->assertTrue(true);
}
$cache->set('test', 'test');
try {
$cache->get_many(array('test', 'exception'), MUST_EXUST);
$cache->get_many(array('test', 'exception'), MUST_EXIST);
$this->fail('Exception expected from cache::get_many using MUST_EXIST');
} catch (Exception $e) {
$this->assertTrue(true);