diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-04-20 13:27:36 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-04-23 12:36:12 +0200 |
commit | 56cb5d1d13d5402a2281722bd82454e8c39e3107 (patch) | |
tree | 40cb3c3934478a5fd7cf036a0c8041a95f46f744 | |
parent | 1296f3612e0a4c81edb922b5cd000842807ca899 (diff) | |
download | nextcloud-server-56cb5d1d13d5402a2281722bd82454e8c39e3107.tar.gz nextcloud-server-56cb5d1d13d5402a2281722bd82454e8c39e3107.zip |
fix(tests): Remove duplicated method
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r-- | tests/lib/BackgroundJob/JobTest.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/lib/BackgroundJob/JobTest.php b/tests/lib/BackgroundJob/JobTest.php index 26e6b4ed85b..37ced6e4757 100644 --- a/tests/lib/BackgroundJob/JobTest.php +++ b/tests/lib/BackgroundJob/JobTest.php @@ -63,27 +63,6 @@ class JobTest extends \Test\TestCase { $this->assertCount(1, $jobList->getAll()); } - public function testRemoveAfterError() { - $jobList = new DummyJobList(); - $job = new TestJob($this->timeFactory, $this, function () { - $test = null; - $test->someMethod(); - }); - $jobList->add($job); - - $logger = $this->getMockBuilder(ILogger::class) - ->disableOriginalConstructor() - ->getMock(); - $logger->expects($this->once()) - ->method('logException') - ->with($this->isInstanceOf(\Throwable::class)); - - $this->assertCount(1, $jobList->getAll()); - $job->execute($jobList, $logger); - $this->assertTrue($this->run); - $this->assertCount(1, $jobList->getAll()); - } - public function testDisallowParallelRunsWithNoOtherJobs() { $jobList = new DummyJobList(); $job = new TestJob($this->timeFactory, $this); |