diff --git a/cake/tests/cases/libs/cache.test.php b/cake/tests/cases/libs/cache.test.php index 76f15bfb8..a019f24bc 100644 --- a/cake/tests/cases/libs/cache.test.php +++ b/cake/tests/cases/libs/cache.test.php @@ -77,6 +77,26 @@ class CacheTest extends CakeTestCase { $this->assertEqual($results, Cache::config('new')); } +/** + * testInvalidConfig method + * + * Test that the cache class doesn't cause fatal errors with a partial path + * + * @access public + * @return void + */ + function testInvaidConfig() { + Cache::config('Invalid', array( + 'engine' => 'File', + 'duration' => '+1 year', + 'prefix' => 'testing_invalid_', + 'path' => 'data/', + 'serialize' => true + )); + $read = Cache::read('Test', 'Invalid'); + $this->assertEqual($read, null); + } + /** * testConfigChange method *