From 56cb5d1d13d5402a2281722bd82454e8c39e3107 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 20 Apr 2023 13:27:36 +0200 Subject: fix(tests): Remove duplicated method Signed-off-by: Marcel Klehr --- tests/lib/BackgroundJob/JobTest.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'tests/lib') 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); -- cgit v1.2.3