MDL-48568 cache: make tests aware of default application store
commitd25a7f21a30999edcb2386a7baca3a7f797a4eca
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 18 Dec 2014 22:41:44 +0000 (18 23:41 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 23 Dec 2014 01:03:06 +0000 (23 02:03 +0100)
tree8f87e3d5410e58de9b02afa0e90f6124921cc58c
parent3c6dac879fdf0448618f24b5e7da6c69721bf8e4
MDL-48568 cache: make tests aware of default application store

When an alternative cache configuration is used, aka:

define('TEST_CACHE_USING_ALT_CACHE_CONFIG_PATH', true);
$CFG->altcacheconfigpath = '/tmp/xxxxx.php';

the get_expected_application_cache_store() method was not able of
retroffiting the default application store being used.

This commit just implements that functionality so, when
executing unit tests using alternative configuration, assertions
looking for that will pass without a problem.
cache/tests/cache_test.php