mirror of
https://github.com/nextcloud/server.git
synced 2024-12-29 16:38:28 +00:00
49dd79eabb
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
40 lines
994 B
PHP
40 lines
994 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace Test\Files\AppData;
|
|
|
|
use OC\Files\AppData\Factory;
|
|
use OC\SystemConfig;
|
|
use OCP\Files\IRootFolder;
|
|
|
|
class FactoryTest extends \Test\TestCase {
|
|
/** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
|
|
private $rootFolder;
|
|
|
|
/** @var SystemConfig|\PHPUnit\Framework\MockObject\MockObject */
|
|
private $systemConfig;
|
|
|
|
/** @var Factory */
|
|
private $factory;
|
|
|
|
protected function setUp(): void {
|
|
parent::setUp();
|
|
|
|
$this->rootFolder = $this->createMock(IRootFolder::class);
|
|
$this->systemConfig = $this->createMock(SystemConfig::class);
|
|
$this->factory = new Factory($this->rootFolder, $this->systemConfig);
|
|
}
|
|
|
|
public function testGet(): void {
|
|
$this->rootFolder->expects($this->never())
|
|
->method($this->anything());
|
|
$this->systemConfig->expects($this->never())
|
|
->method($this->anything());
|
|
|
|
$this->factory->get('foo');
|
|
}
|
|
}
|