Skip to content

Commit

Permalink
Merge pull request #782 from nextcloud/artonge/chore/remove_reference…
Browse files Browse the repository at this point in the history
…_to_ilogger

chore: Remove reference to ILogger
  • Loading branch information
artonge authored Sep 26, 2024
2 parents ca18455 + a44dc1b commit c7a42c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
9 changes: 1 addition & 8 deletions tests/Unit/FileServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,16 @@
use OCP\Files\Folder;
use OCP\Files\Node;
use OCP\Files\Storage\IStorage;
use OCP\ILogger;
use Test\TestCase;

class FileServiceTest extends TestCase {

/** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
private $logger;

/** @var FileService */
private $fileService;

protected function setUp(): void {
parent::setUp();

$this->logger = $this->createMock(ILogger::class);

$this->fileService = new FileService($this->logger);
$this->fileService = new FileService();
}

public function testRevertChangesEmpty(): void {
Expand Down
32 changes: 0 additions & 32 deletions tests/stub.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -326,38 +326,6 @@ namespace OCA\DAV\Connector\Sabre {
}
}

namespace OC\BackgroundJob {

use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\IJobList;
use OCP\ILogger;

abstract class TimedJob implements IJob {
public function execute(IJobList $jobList, ILogger $logger = null) {
}

abstract protected function run($argument);

public function setId(int $id) {
}

public function setLastRun(int $lastRun) {
}

public function setArgument($argument) {
}

public function getId() {
}

public function getLastRun() {
}

public function getArgument() {
}
}
}

namespace OC\Files\Mount {
use OC\Files\Filesystem;
use OC\Files\Storage\Storage;
Expand Down

0 comments on commit c7a42c9

Please sign in to comment.