/** * try to get container by name * */ public function testGetContainerByName() { $container = $this->_instance->getContainerByName('Addressbook', $this->objects['initialContainer']->name, $this->objects['initialContainer']->type, Tinebase_Core::getUser()->getId()); $this->assertEquals('Tinebase_Model_Container', get_class($container), 'wrong type'); $this->assertEquals($this->objects['initialContainer']->name, $container->name); $this->_validateOwnerId($container); $this->_validatePath($container); }