This fixes the tests.

This commit is contained in:
James Cole
2016-12-27 15:46:52 +01:00
parent be201e811d
commit 349d254193
6 changed files with 41 additions and 19 deletions

View File

@@ -39,6 +39,19 @@ class ExportJobRepository implements ExportJobRepositoryInterface
$this->user = $user;
}
/**
* @param ExportJob $job
* @param string $status
*
* @return bool
*/
public function changeStatus(ExportJob $job, string $status): bool
{
$job->change($status);
return true;
}
/**
* @return bool
*/

View File

@@ -32,6 +32,14 @@ interface ExportJobRepositoryInterface
*/
public function create(): ExportJob;
/**
* @param ExportJob $job
* @param string $status
*
* @return bool
*/
public function changeStatus(ExportJob $job, string $status): bool;
/**
* @param ExportJob $job
*