Browse Source

Merge pull request #4374 from kimegede/cache-test-update

Cache test update
José Lorenzo Rodríguez 11 years ago
parent
commit
986e8dbedc
1 changed files with 9 additions and 4 deletions
  1. 9 4
      tests/TestCase/Cache/CacheTest.php

+ 9 - 4
tests/TestCase/Cache/CacheTest.php

@@ -47,6 +47,11 @@ class CacheTest extends TestCase {
 		Cache::drop('tests');
 	}
 
+/**
+ * Configure cache settings for test
+ *
+ * @return void
+ */
 	protected function _configCache() {
 		Cache::config('tests', [
 			'engine' => 'File',
@@ -60,13 +65,13 @@ class CacheTest extends TestCase {
  *
  * @return void
  */
-	public function testNonFatalErrorsWithCachedisable() {
+	public function testNonFatalErrorsWithCacheDisable() {
 		Cache::disable();
 		$this->_configCache();
 
-		Cache::write('no_save', 'Noooo!', 'tests');
-		Cache::read('no_save', 'tests');
-		Cache::delete('no_save', 'tests');
+		$this->assertNull(Cache::write('no_save', 'Noooo!', 'tests'));
+		$this->assertFalse(Cache::read('no_save', 'tests'));
+		$this->assertNull(Cache::delete('no_save', 'tests'));
 	}
 
 /**