/** * @param string $ean * * @return bool */ public function delete($ean) { $endpoint = new Delete($this->getTransport()); $endpoint->setId($ean); $result = $endpoint->performRequest(); return $result['status'] == 204; }
/** * @expectedException \Hitmeister\Component\Api\Exceptions\RuntimeException * @expectedExceptionMessage Required params id is not set */ public function testExceptionOnEmptyId() { $delete = new Delete($this->transport); $delete->getURI(); }