Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2020-08-14 05:10:53 +0300
committerGitHub <noreply@github.com>2020-08-14 05:10:53 +0300
commit5559570fafcedf2db709dd9ee1e82acad85e60df (patch)
tree41fc3f4c6c8e1e91fc5fb3a8d1688dbb759d5569 /tests
parent75c659cfbc7041b7f9163181f66aa73bf08308fa (diff)
parent16d83ab30a60c2a6a4cd71c1127dbc8dece7e136 (diff)
Merge pull request #22242 from nextcloud/techdebt/noid/remove-deprecated-methods
Remove deprecated and unused method calls
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php9
-rw-r--r--tests/lib/BackgroundJob/JobListTest.php9
2 files changed, 0 insertions, 18 deletions
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
@@ -118,15 +118,6 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
}
/**
- * get the id of the last ran job
- *
- * @return int
- */
- public function getLastJob() {
- return $this->last;
- }
-
- /**
* set the lastRun of $job to now
*
* @param IJob $job
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();