public function testDeleteTemplateReturnsCorrectData() { $template = new Template(); $template->setId(1); $this->setMockResponse($this->client, array('templates/deleteTemplate')); $result = $this->client->deleteTemplate($template); $this->assertInternalType('boolean', $result); $this->assertEquals(true, $result); }
public function deleteTemplate(Template $template) { $command = $this->getCommand('DeleteTemplate', array('templateId' => $template->getId())); return $this->execute($command); }