From 16d83ab30a60c2a6a4cd71c1127dbc8dece7e136 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 13 Aug 2020 21:50:06 +0200 Subject: Remove getLastJob from IJobList Signed-off-by: Morris Jobke --- tests/lib/BackgroundJob/DummyJobList.php | 9 --------- tests/lib/BackgroundJob/JobListTest.php | 9 --------- 2 files changed, 18 deletions(-) (limited to 'tests') diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php index 529e93e960f..452b9bb98ed 100644 --- a/tests/lib/BackgroundJob/DummyJobList.php +++ b/tests/lib/BackgroundJob/DummyJobList.php @@ -117,15 +117,6 @@ class DummyJobList extends \OC\BackgroundJob\JobList { return null; } - /** - * get the id of the last ran job - * - * @return int - */ - public function getLastJob() { - return $this->last; - } - /** * set the lastRun of $job to now * diff --git a/tests/lib/BackgroundJob/JobListTest.php b/tests/lib/BackgroundJob/JobListTest.php index 20ba1e50016..736d670ed20 100644 --- a/tests/lib/BackgroundJob/JobListTest.php +++ b/tests/lib/BackgroundJob/JobListTest.php @@ -146,15 +146,6 @@ class JobListTest extends TestCase { $this->assertFalse($this->instance->has($job, 10)); } - public function testGetLastJob() { - $this->config->expects($this->once()) - ->method('getAppValue') - ->with('backgroundjob', 'lastjob', 0) - ->willReturn(15); - - $this->assertEquals(15, $this->instance->getLastJob()); - } - protected function createTempJob($class, $argument, $reservedTime = 0, $lastChecked = 0) { if ($lastChecked === 0) { $lastChecked = time(); -- cgit v1.2.3