public function ProgressTrackerApiFunctionalTest::testDeleteRecord in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/tests/functional/ProgressTrackerApiFunctionalTest.php \Smartling\Tests\Functional\ProgressTrackerApiFunctionalTest::testDeleteRecord()
Tests for delete record.
File
- vendor/
smartling/ api-sdk-php/ tests/ functional/ ProgressTrackerApiFunctionalTest.php, line 96
Class
- ProgressTrackerApiFunctionalTest
- Test class for Progress Tracker API examples.
Namespace
Smartling\Tests\FunctionalCode
public function testDeleteRecord() {
try {
$params = new RecordParameters();
$params
->setTtl(15);
$params
->setData([
"foo" => "bar",
]);
$result = $this->progressTrackerApi
->createRecord("space", "object", $params);
$result = $this->progressTrackerApi
->deleteRecord("space", "object", $result["recordUid"]);
$this
->assertTrue($result);
} catch (SmartlingApiException $e) {
$result = false;
}
return $result;
}