diff --git a/tests/Integration/JobTest.php b/tests/Integration/JobTest.php index 6299c99..b95dbb3 100644 --- a/tests/Integration/JobTest.php +++ b/tests/Integration/JobTest.php @@ -44,6 +44,8 @@ public function testCreateJob() $this->assertEquals('import-it', $task2->getName()); + $this->cloudConvert->jobs()->delete($job); + } @@ -87,6 +89,8 @@ public function testUploadAndDownloadFiles() $this->assertEquals(filesize($destPath), 172570); + $this->cloudConvert->jobs()->delete($job); + } diff --git a/tests/Integration/TaskTest.php b/tests/Integration/TaskTest.php index 796b26c..f5a2bbb 100644 --- a/tests/Integration/TaskTest.php +++ b/tests/Integration/TaskTest.php @@ -29,6 +29,8 @@ public function testCreateImportUrlTask() ], (array)$task->getPayload()); $this->assertEquals(Task::STATUS_WATING, $task->getStatus()); + $this->cloudConvert->tasks()->delete($task); + } @@ -49,6 +51,8 @@ public function testUploadFile() $this->assertEquals('input.pdf', $task->getResult()->files[0]->filename); + $this->cloudConvert->tasks()->delete($task); + }