summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Utility
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-09-20 22:03:05 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-09-25 19:18:04 +0200
commit60ab4941cc7e6ede095e9e4aee3c2bf9a5c3bff6 (patch)
treebaf0b07dd1c545efeb59437af46a99f4d9f69425 /tests/Unit/Utility
parent2c8b4fa019749113658b9ed8cae211b679e4cbc0 (diff)
Move to nextcloud config and update phpunit
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Utility')
-rw-r--r--tests/Unit/Utility/OPMLExporterTest.php10
-rw-r--r--tests/Unit/Utility/UpdaterTest.php8
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/Unit/Utility/OPMLExporterTest.php b/tests/Unit/Utility/OPMLExporterTest.php
index 80cbaf950..8c7c3c923 100644
--- a/tests/Unit/Utility/OPMLExporterTest.php
+++ b/tests/Unit/Utility/OPMLExporterTest.php
@@ -32,7 +32,7 @@ class OPMLExporterTest extends TestCase
/** @var Folder */
private $folder2;
- protected function setUp()
+ protected function setUp(): void
{
$this->exporter = new OPMLExporter();
$this->folder1 = new Folder();
@@ -55,7 +55,7 @@ class OPMLExporterTest extends TestCase
}
- private function getAttribute($item, $name)
+ private function getAttribute($item, $name)
{
// used to fix scrutinizer errors
if ($item instanceof \DOMElement) {
@@ -75,7 +75,7 @@ class OPMLExporterTest extends TestCase
}
- public function testBuildReturnsFolders()
+ public function testBuildReturnsFolders()
{
$result = $this->exporter->build([$this->folder1, $this->folder2], []);
$xpath = new \DOMXpath($result);
@@ -101,7 +101,7 @@ class OPMLExporterTest extends TestCase
}
- public function testBuildReturnsOnlyOneFeedIfParentFolderNotThere()
+ public function testBuildReturnsOnlyOneFeedIfParentFolderNotThere()
{
$result = $this->exporter->build([], [$this->feed1, $this->feed2]);
$xpath = new \DOMXpath($result);
@@ -127,7 +127,7 @@ class OPMLExporterTest extends TestCase
}
- public function testBuildReturnsFeedsAndFolders()
+ public function testBuildReturnsFeedsAndFolders()
{
$result = $this->exporter->build(
[$this->folder1, $this->folder2],
diff --git a/tests/Unit/Utility/UpdaterTest.php b/tests/Unit/Utility/UpdaterTest.php
index 3a285ccfd..3cd81de02 100644
--- a/tests/Unit/Utility/UpdaterTest.php
+++ b/tests/Unit/Utility/UpdaterTest.php
@@ -28,7 +28,7 @@ class UpdaterTest extends TestCase
private $itemService;
private $updater;
- protected function setUp()
+ protected function setUp(): void
{
$this->folderService = $this->getMockBuilder(FolderService::class)
->disableOriginalConstructor()
@@ -46,7 +46,7 @@ class UpdaterTest extends TestCase
);
}
- public function testBeforeUpdate()
+ public function testBeforeUpdate()
{
$this->folderService->expects($this->once())
->method('purgeDeleted');
@@ -56,14 +56,14 @@ class UpdaterTest extends TestCase
}
- public function testAfterUpdate()
+ public function testAfterUpdate()
{
$this->itemService->expects($this->once())
->method('autoPurgeOld');
$this->updater->afterUpdate();
}
- public function testUpdate()
+ public function testUpdate()
{
$this->feedService->expects($this->once())
->method('updateAll');