]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(tests): Remove duplicated method
authorMarcel Klehr <mklehr@gmx.net>
Thu, 20 Apr 2023 11:27:36 +0000 (13:27 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Sun, 23 Apr 2023 10:36:12 +0000 (12:36 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
tests/lib/BackgroundJob/JobTest.php

index 26e6b4ed85b7c31b6a5b227d5109ab5e52735746..37ced6e475732d2783e7deb0e0137a399fa82269 100644 (file)
@@ -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);