Skip to content

Commit

Permalink
integration tests: delete jobs/tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
josiasmontag committed Feb 12, 2021
1 parent 4b8a5a5 commit 5951a83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Integration/JobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public function testCreateJob()

$this->assertEquals('import-it', $task2->getName());

$this->cloudConvert->jobs()->delete($job);

}


Expand Down Expand Up @@ -87,6 +89,8 @@ public function testUploadAndDownloadFiles()

$this->assertEquals(filesize($destPath), 172570);

$this->cloudConvert->jobs()->delete($job);


}

Expand Down
4 changes: 4 additions & 0 deletions tests/Integration/TaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public function testCreateImportUrlTask()
], (array)$task->getPayload());
$this->assertEquals(Task::STATUS_WATING, $task->getStatus());

$this->cloudConvert->tasks()->delete($task);


}

Expand All @@ -49,6 +51,8 @@ public function testUploadFile()

$this->assertEquals('input.pdf', $task->getResult()->files[0]->filename);

$this->cloudConvert->tasks()->delete($task);


}

Expand Down

0 comments on commit 5951a83

Please sign in to comment.