/** * test clear message cache * */ public function testClear() { $this->_controller->clear($this->_folder); $messageCacheBackend = new Felamimail_Backend_Cache_Sql_Message(); $count = $messageCacheBackend->searchCountByFolderId($this->_folder->getId()); // check if empty $this->assertEquals(0, $count); $this->assertEquals(Felamimail_Model_Folder::CACHE_STATUS_EMPTY, $this->_folder->cache_status); $this->assertEquals(0, $this->_folder->cache_job_actions_est); }