callAPISuccess($this->_entity, 'getsingle', array('label' => 'Manage Groups', 'domain_id' => 1)); } /** * Test create function. */ public function testCreate() { $params = array('label' => 'Feed the Goats', 'domain_id' => 1); $result = $this->callAPISuccess($this->_entity, 'create', $params); $this->getAndCheck($params, $result['id'], $this->_entity, TRUE); } /** * Test delete function. */ public function testDelete() { $getParams = array( 'return' => 'id', 'options' => array('limit' => 1), ); $result = $this->callAPISuccess('Navigation', 'getvalue', $getParams); $this->callAPISuccess('Navigation', 'delete', array('id' => $result)); $this->callAPIFailure('Navigation', 'getvalue', array('id' => $result)); } }