Bring back forgotten tests
Remove "ocs-provider" test folder reference as it doesn't exist any more. Added back "Test" test subdir and fixed the tests inside. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
95e03fba2d
commit
8b92776be4
|
@ -52,7 +52,7 @@ class CleanPreviewsBackgroundJobTest extends TestCase {
|
|||
/** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
|
||||
private $userManager;
|
||||
|
||||
public function setUp() {
|
||||
public function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
$this->rootFolder = $this->createMock(IRootFolder::class);
|
||||
|
|
|
@ -46,7 +46,7 @@ class CleanPreviewsTest extends TestCase {
|
|||
/** @var CleanPreviews */
|
||||
private $repair;
|
||||
|
||||
public function setUp() {
|
||||
public function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
$this->jobList = $this->createMock(IJobList::class);
|
||||
|
|
|
@ -41,7 +41,7 @@ class InstallCoreBundleTest extends TestCase {
|
|||
/** @var InstallCoreBundle */
|
||||
private $installCoreBundle;
|
||||
|
||||
public function setUp() {
|
||||
public function setUp(): void {
|
||||
parent::setUp();
|
||||
$this->bundleFetcher = $this->createMock(BundleFetcher::class);
|
||||
$this->config = $this->createMock(IConfig::class);
|
||||
|
|
|
@ -43,7 +43,7 @@ class UpdateLanguageCodesTest extends TestCase {
|
|||
/** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
|
||||
private $config;
|
||||
|
||||
protected function setUp() {
|
||||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
$this->connection = \OC::$server->getDatabaseConnection();
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<testsuite name='ownCloud'>
|
||||
<directory suffix='.php'>lib/</directory>
|
||||
<directory suffix='.php'>Core/</directory>
|
||||
<directory suffix='.php'>ocs-provider/</directory>
|
||||
<directory suffix='.php'>Test/</directory>
|
||||
<file>apps.php</file>
|
||||
</testsuite>
|
||||
<!-- filters for code coverage -->
|
||||
|
|
Loading…
Reference in New Issue