diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-18 15:05:32 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-18 15:05:32 +0100 |
commit | 54558bb5b296740233036601d2b3eb7f87ee48c4 (patch) | |
tree | 164bd3b6a68db81d5ada7cc6cfce13067f154ec9 /tests | |
parent | 6b813f56c9208743002456792009dd14b950b8d3 (diff) | |
download | nextcloud-server-54558bb5b296740233036601d2b3eb7f87ee48c4.tar.gz nextcloud-server-54558bb5b296740233036601d2b3eb7f87ee48c4.zip |
Fix the test to expect the new behaviour
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/backgroundjob/job.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/lib/backgroundjob/job.php b/tests/lib/backgroundjob/job.php index fec9b0a792d..912e0e13b57 100644 --- a/tests/lib/backgroundjob/job.php +++ b/tests/lib/backgroundjob/job.php @@ -23,10 +23,17 @@ class Job extends \Test\TestCase { }); $jobList->add($job); + $logger = $this->getMockBuilder('OCP\ILogger') + ->disableOriginalConstructor() + ->getMock(); + $logger->expects($this->once()) + ->method('error') + ->with('Error while running background job: '); + $this->assertCount(1, $jobList->getAll()); - $job->execute($jobList); + $job->execute($jobList, $logger); $this->assertTrue($this->run); - $this->assertCount(0, $jobList->getAll()); + $this->assertCount(1, $jobList->getAll()); } public function markRun() { |