/** * try to create some folders */ public function testCreateFolders() { $filter = $this->_getFolderFilter(); $result = $this->_json->searchFolders($filter); $foldernames = array('test' => 'test', 'Schlüssel' => 'Schlüssel', 'test//1' => 'test1', 'test\\2' => 'test2'); foreach ($foldernames as $foldername => $expected) { $result = $this->_json->addFolder($foldername, $this->_testFolderName, $this->_account->getId()); $globalname = $this->_testFolderName . $this->_account->delimiter . $expected; $this->_createdFolders[] = $globalname; $this->assertEquals($expected, $result['localname']); $this->assertEquals($globalname, $result['globalname']); $this->assertEquals(Felamimail_Model_Folder::CACHE_STATUS_EMPTY, $result['cache_status']); } }