public static function tearDownAfterClass() { if (self::$about != null) { RequestResponse::DeleteRequest(self::$client, self::$about); } else { print "\n Nothing to clean up after testing: the rdf-about is null \n"; } }
public static function tearDownAfterClass() { if (self::$aboutX != null) { RequestResponse::DeleteRequest(self::$client, self::$aboutX); } else { print "\n The rdf-about of the concept X is null \n"; } if (self::$aboutY != null) { RequestResponse::DeleteRequest(self::$client, self::$aboutY); } else { print "\n The rdf-about of the concept Y is null \n"; } }
public function testDeleteApproved() { print "\n deleting concept with approved status ..."; if (self::$response0->getStatus() === 201) { $response = RequestResponse::DeleteRequest(self::$client, self::$about); self::$client->setUri(BASE_URI_ . '/public/api/concept?id=' . self::$uuid); $responseCheck = self::$client->request('GET'); if ($responseCheck->getStatus() === 410) { print "\n Approved concept has been marked as deleted! \n"; } $this->AssertEquals(410, $responseCheck->getStatus()); if ($response->getStatus() !== 202) { print "\n delete return status " . $response->getStatus(); print "\n with the message " . $response->getMessage(); } $this->AssertEquals(202, $response->getStatus()); } }
public static function deleteConcepts($abouts, $client) { foreach ($abouts as $about) { if ($about != null) { $response = RequestResponse::DeleteRequest($client, $about); if ($response->getStatus() !== 202 && $response->getStatus() !== 200) { Logging::failureMessaging($response, 'deleting test concept ' . $about); } } } }