Browse Source

Made assertions in testNonFatalErrorsWithCacheDisable.
To avoid "R" (Risky) in phpunit.

Kim Egede Jakobsen 11 years ago
parent
commit
55d8475547
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/TestCase/Cache/CacheTest.php

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

@@ -65,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'));
 	}
 
 /**