diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-01-20 08:38:43 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-01-20 08:38:43 +0100 |
commit | 898d2923cce4e61e21a26fed06ad402452c0b3b1 (patch) | |
tree | e9f3b91311c880074ff317a45700e080340fece0 /apps/dav/tests/unit/Migration | |
parent | 5e3a3c0c8faa45489aa6ac610728b4177501c198 (diff) | |
download | nextcloud-server-898d2923cce4e61e21a26fed06ad402452c0b3b1.tar.gz nextcloud-server-898d2923cce4e61e21a26fed06ad402452c0b3b1.zip |
chore(dav): Add void return type to test methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/tests/unit/Migration')
3 files changed, 9 insertions, 9 deletions
diff --git a/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php b/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php index 0adabd2388f..5e1d5952c73 100644 --- a/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php +++ b/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php @@ -99,7 +99,7 @@ END:VCALENDAR'; $this->output = $this->createMock(IOutput::class); } - public function testRunAllValid() { + public function testRunAllValid(): void { /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */ $step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class) ->setConstructorArgs([ @@ -123,7 +123,7 @@ END:VCALENDAR'; $step->run($this->output); } - public function testRunInvalid() { + public function testRunInvalid(): void { /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */ $step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class) ->setConstructorArgs([ @@ -166,7 +166,7 @@ END:VCALENDAR'; $step->run($this->output); } - public function testRunValid() { + public function testRunValid(): void { /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */ $step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class) ->setConstructorArgs([ @@ -208,7 +208,7 @@ END:VCALENDAR'; $step->run($this->output); } - public function testRunStillInvalid() { + public function testRunStillInvalid(): void { /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */ $step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class) ->setConstructorArgs([ diff --git a/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php b/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php index 073465cd24c..1053752a039 100644 --- a/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php +++ b/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php @@ -54,11 +54,11 @@ class RefreshWebcalJobRegistrarTest extends TestCase { $this->migration = new RefreshWebcalJobRegistrar($this->db, $this->jobList); } - public function testGetName() { + public function testGetName(): void { $this->assertEquals($this->migration->getName(), 'Registering background jobs to update cache for webcal calendars'); } - public function testRun() { + public function testRun(): void { $output = $this->createMock(IOutput::class); $queryBuilder = $this->createMock(IQueryBuilder::class); diff --git a/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php b/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php index bb5210f18fb..5305abc9299 100644 --- a/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php +++ b/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php @@ -54,14 +54,14 @@ class RegenerateBirthdayCalendarsTest extends TestCase { $this->config); } - public function testGetName() { + public function testGetName(): void { $this->assertEquals( 'Regenerating birthday calendars to use new icons and fix old birthday events without year', $this->migration->getName() ); } - public function testRun() { + public function testRun(): void { $this->config->expects($this->once()) ->method('getAppValue') ->with('dav', 'regeneratedBirthdayCalendarsForYearFix') @@ -83,7 +83,7 @@ class RegenerateBirthdayCalendarsTest extends TestCase { $this->migration->run($output); } - public function testRunSecondTime() { + public function testRunSecondTime(): void { $this->config->expects($this->once()) ->method('getAppValue') ->with('dav', 'regeneratedBirthdayCalendarsForYearFix') |