Extends
lithium\test\Unit
Tests the correct writing to the cache adapter. In this test we use the
"Memory" cache adapter so that we can easily verify the written message.
Source
public function testWrite() {
$message = "CacheLog test message...";
$result = Logger::write('info', $message, array('name' => 'cachelog'));
$this->assertTrue($result);
$result = CacheStorage::read('cachelog', 'cachelog_testkey');
$this->assertEqual($message, $result);
}