/** * get folders from the server */ public function testGetFolders() { $inboxFolder = $this->_getInbox(); $this->assertFalse($inboxFolder === NULL, 'inbox not found'); $this->assertTrue($inboxFolder->is_selectable == 1, 'should be selectable'); $this->assertTrue($inboxFolder->has_children == 0, 'has children'); // check if entry is created/exists in db $folder = $this->_controller->getByBackendAndGlobalName($this->_account->getId(), 'INBOX'); //print_r($folder->toArray()); $this->assertTrue(!empty($folder->id)); $this->assertEquals('INBOX', $folder->localname); }