Skip to content
Permalink
Browse files

Adjusted assertions to match NullEngine::write() returned value

  • Loading branch information...
georgeconstantinou committed Nov 23, 2018
1 parent 6b63831 commit e56683d2ae5092e59981e6753b2cb4eef384c42a
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/TestCase/Cache/CacheTest.php
@@ -235,7 +235,7 @@ public function testNonFatalErrorsWithCacheDisable()
Cache::disable();
$this->_configCache();
$this->assertNull(Cache::write('no_save', 'Noooo!', 'tests'));
$this->assertTrue(Cache::write('no_save', 'Noooo!', 'tests'));
$this->assertFalse(Cache::read('no_save', 'tests'));
$this->assertNull(Cache::delete('no_save', 'tests'));
}
@@ -739,7 +739,7 @@ public function testCacheDisable()
Cache::disable();
$this->assertNull(Cache::write('key_2', 'hello', 'test_cache_disable_1'));
$this->assertTrue(Cache::write('key_2', 'hello', 'test_cache_disable_1'));
$this->assertFalse(Cache::read('key_2', 'test_cache_disable_1'));
Cache::enable();
@@ -754,7 +754,7 @@ public function testCacheDisable()
'path' => CACHE . 'tests'
]);
$this->assertNull(Cache::write('key_4', 'hello', 'test_cache_disable_2'));
$this->assertTrue(Cache::write('key_4', 'hello', 'test_cache_disable_2'));
$this->assertFalse(Cache::read('key_4', 'test_cache_disable_2'));
Cache::enable();
@@ -763,7 +763,7 @@ public function testCacheDisable()
$this->assertSame(Cache::read('key_5', 'test_cache_disable_2'), 'hello');
Cache::disable();
$this->assertNull(Cache::write('key_6', 'hello', 'test_cache_disable_2'));
$this->assertTrue(Cache::write('key_6', 'hello', 'test_cache_disable_2'));
$this->assertFalse(Cache::read('key_6', 'test_cache_disable_2'));
Cache::enable();

0 comments on commit e56683d

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.