From 1562fed6b23fe38755d0f7693c28d6f364c9659e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Sat, 17 Mar 2018 12:13:22 +0100 Subject: [PATCH] [TASK] Make LegacyLinkNotationConverterTest notice free Resolves: #84418 Releases: master Change-Id: I63db56d7ea5e5ac40aaa887182149df70ddf43d9 Reviewed-on: https://review.typo3.org/56289 Tested-by: TYPO3com Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- .../LegacyLinkNotationConverterTest.php | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php b/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php index 2822de2d111a..612485145f6d 100644 --- a/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php +++ b/typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php @@ -1,4 +1,5 @@ [ @@ -98,7 +95,7 @@ public function resolveParametersForNonFilesDataProvider() * * @dataProvider resolveParametersForNonFilesDataProvider */ - public function resolveReturnsSplitParameters($input, $expected, $finalString) + public function resolveReturnsSplitParameters($input, $expected, $finalString): void { $subject = new LegacyLinkNotationConverter(); $this->assertEquals($expected, $subject->resolve($input)); @@ -113,7 +110,7 @@ public function resolveReturnsSplitParameters($input, $expected, $finalString) * * @dataProvider resolveParametersForNonFilesDataProvider */ - public function splitParametersToUnifiedIdentifier($input, $parameters, $expected) + public function splitParametersToUnifiedIdentifier($input, $parameters, $expected): void { $subject = new LinkService(); $this->assertEquals($expected, $subject->asString($parameters)); @@ -132,7 +129,7 @@ public function splitParametersToUnifiedIdentifier($input, $parameters, $expecte * * @return array */ - public function resolveParametersForFilesDataProvider() + public function resolveParametersForFilesDataProvider(): array { return [ 'file without FAL - VERY old style' => [ @@ -189,7 +186,7 @@ public function resolveParametersForFilesDataProvider() * * @dataProvider resolveParametersForFilesDataProvider */ - public function resolveFileReferencesToSplitParameters($input, $expected, $finalString) + public function resolveFileReferencesToSplitParameters($input, $expected, $finalString): void { $storage = $this->getMockBuilder(ResourceStorage::class) ->disableOriginalConstructor() @@ -239,7 +236,7 @@ public function resolveFileReferencesToSplitParameters($input, $expected, $final * * @dataProvider resolveParametersForFilesDataProvider */ - public function splitParametersToUnifiedIdentifierForFiles($input, $parameters, $expected) + public function splitParametersToUnifiedIdentifierForFiles($input, $parameters, $expected): void { // fake methods to return proper objects if ($parameters['type'] === LinkService::TYPE_FILE) {