Commit 582be905 authored by Wouter Wolters's avatar Wouter Wolters Committed by Benni Mack
Browse files

[TASK] Strictify tests part 10

Resolves: #95234
Releases: master
Change-Id: Ic6e8326d0e9f97429a727ac1ceae6aab2ff976d7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71078

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 1ec67c42
......@@ -49,7 +49,7 @@ class SiteResolverTest extends UnitTestCase
{
return new JsonResponse([], $request === $this->incomingRequest ? 200 : 500);
}
public function setIncomingRequest(ServerRequestInterface $incomingRequest)
public function setIncomingRequest(ServerRequestInterface $incomingRequest): void
{
$this->incomingRequest = $incomingRequest;
}
......
......@@ -55,7 +55,7 @@ class GetExtensionsCest
/**
* @param ApplicationTester $I
*/
public function checkPaginationIsNotDisplayedForTwoRecords(ApplicationTester $I)
public function checkPaginationIsNotDisplayedForTwoRecords(ApplicationTester $I): void
{
$I->dontSeeElement('.pagination-wrap');
$I->dontSee('Extensions 1 - 2');
......
......@@ -22,7 +22,7 @@ use TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester;
class LoginCest extends AbstractCest
{
public function installToolLogin(ApplicationTester $I)
public function installToolLogin(ApplicationTester $I): void
{
$I->amGoingTo('assert the install tool is locked in the first place');
$I->waitForElementVisible('.panel-heading');
......
......@@ -75,7 +75,7 @@ class RedirectModuleCest
* @param ApplicationTester $I
* @dataProvider possibleRedirectStatusCodes
*/
public function seeStatusCodesWhenCreatingNewRedirect(ApplicationTester $I, Example $example)
public function seeStatusCodesWhenCreatingNewRedirect(ApplicationTester $I, Example $example): void
{
$I->amGoingTo('Create a redirect and see the different status codes');
$I->click('a[title="Add redirect"]');
......
......@@ -32,7 +32,7 @@ class HelpCest
*/
public static string $topBarModuleSelector = '#typo3-cms-backend-backend-toolbaritems-helptoolbaritem';
public function _before(ApplicationTester $I)
public function _before(ApplicationTester $I): void
{
$I->useExistingSession('admin');
}
......
......@@ -24,7 +24,7 @@ use TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester;
*/
class UsernameOnAvatarCest
{
public function _before(ApplicationTester $I)
public function _before(ApplicationTester $I): void
{
$I->useExistingSession('admin');
}
......
......@@ -43,7 +43,7 @@ class AuthenticationServiceTest extends FunctionalTestCase
/**
* @test
*/
public function getUserReturnsOnlyNotDeletedRecords()
public function getUserReturnsOnlyNotDeletedRecords(): void
{
$this->subject->pObj = new BackendUserAuthentication();
$this->subject->login = [
......
......@@ -70,7 +70,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function setThrowsExceptionIfNoFrontEndHasBeenSet()
public function setThrowsExceptionIfNoFrontEndHasBeenSet(): void
{
$subject = $this->initializeSubject();
......@@ -83,7 +83,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function initializeObjectThrowsExceptionIfNoMemcacheServerIsConfigured()
public function initializeObjectThrowsExceptionIfNoMemcacheServerIsConfigured(): void
{
$subject = new MemcachedBackend('Testing');
$this->expectException(Exception::class);
......@@ -94,7 +94,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function itIsPossibleToSetAndCheckExistenceInCache()
public function itIsPossibleToSetAndCheckExistenceInCache(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -110,7 +110,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function itIsPossibleToSetAndGetEntry()
public function itIsPossibleToSetAndGetEntry(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -127,7 +127,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsPreviouslySetDataWithVariousTypes()
public function getReturnsPreviouslySetDataWithVariousTypes(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -156,7 +156,7 @@ class MemcachedBackendTest extends FunctionalTestCase
*
* @test
*/
public function largeDataIsStored()
public function largeDataIsStored(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -173,7 +173,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function itIsPossibleToRemoveEntryFromCache()
public function itIsPossibleToRemoveEntryFromCache(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -191,7 +191,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function itIsPossibleToOverwriteAnEntryInTheCache()
public function itIsPossibleToOverwriteAnEntryInTheCache(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -210,7 +210,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag()
public function findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -230,7 +230,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function setRemovesTagsFromPreviousSet()
public function setRemovesTagsFromPreviousSet(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -248,7 +248,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function hasReturnsFalseIfTheEntryDoesntExist()
public function hasReturnsFalseIfTheEntryDoesntExist(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -263,7 +263,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function removeReturnsFalseIfTheEntryDoesntExist()
public function removeReturnsFalseIfTheEntryDoesntExist(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -278,7 +278,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushByTagRemovesCacheEntriesWithSpecifiedTag()
public function flushByTagRemovesCacheEntriesWithSpecifiedTag(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -299,7 +299,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushByTagsRemovesCacheEntriesWithSpecifiedTags()
public function flushByTagsRemovesCacheEntriesWithSpecifiedTags(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -320,7 +320,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushRemovesAllCacheEntries()
public function flushRemovesAllCacheEntries(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -341,7 +341,7 @@ class MemcachedBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushRemovesOnlyOwnEntries()
public function flushRemovesOnlyOwnEntries(): void
{
$thisFrontendProphecy = $this->prophesize(FrontendInterface::class);
$thisFrontendProphecy->getIdentifier()->willReturn('thisCache');
......
......@@ -32,7 +32,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsPreviouslySetEntry()
public function getReturnsPreviouslySetEntry(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -47,7 +47,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsPreviouslySetEntryWithNewContentIfSetWasCalledMultipleTimes()
public function getReturnsPreviouslySetEntryWithNewContentIfSetWasCalledMultipleTimes(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -63,7 +63,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function setInsertsDataWithTagsIntoCacheTable()
public function setInsertsDataWithTagsIntoCacheTable(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -83,7 +83,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function setStoresCompressedContent()
public function setStoresCompressedContent(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -110,7 +110,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsFalseIfNoCacheEntryExists()
public function getReturnsFalseIfNoCacheEntryExists(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -124,7 +124,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsFalseForExpiredCacheEntry()
public function getReturnsFalseForExpiredCacheEntry(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -151,7 +151,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsNotExpiredCacheEntry()
public function getReturnsNotExpiredCacheEntry(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -178,7 +178,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsUnzipsNotExpiredCacheEntry()
public function getReturnsUnzipsNotExpiredCacheEntry(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -207,7 +207,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function getReturnsEmptyStringUnzipped()
public function getReturnsEmptyStringUnzipped(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -236,7 +236,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function hasReturnsFalseIfNoCacheEntryExists()
public function hasReturnsFalseIfNoCacheEntryExists(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -250,7 +250,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function hasReturnsFalseForExpiredCacheEntry()
public function hasReturnsFalseForExpiredCacheEntry(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -277,7 +277,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function hasReturnsNotExpiredCacheEntry()
public function hasReturnsNotExpiredCacheEntry(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -304,7 +304,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function removeReturnsFalseIfNoEntryHasBeenRemoved()
public function removeReturnsFalseIfNoEntryHasBeenRemoved(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -318,7 +318,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function removeReturnsTrueIfAnEntryHasBeenRemoved()
public function removeReturnsTrueIfAnEntryHasBeenRemoved(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -345,7 +345,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function removeRemovesCorrectEntriesFromDatabase()
public function removeRemovesCorrectEntriesFromDatabase(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -393,7 +393,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function findIdentifiersByTagReturnsIdentifierTaggedWithGivenTag()
public function findIdentifiersByTagReturnsIdentifierTaggedWithGivenTag(): void
{
$subject = $this->getSubjectObject();
......@@ -409,7 +409,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function flushByTagWorksWithEmptyCacheTablesWithMysql()
public function flushByTagWorksWithEmptyCacheTablesWithMysql(): void
{
$subject = $this->getSubjectObject(true);
$subject->flushByTag('tagB');
......@@ -422,7 +422,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function flushByTagsWorksWithEmptyCacheTablesWithMysql()
public function flushByTagsWorksWithEmptyCacheTablesWithMysql(): void
{
$subject = $this->getSubjectObject(true);
$subject->flushByTags(['tagB']);
......@@ -435,7 +435,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function flushByTagRemovesCorrectRowsFromDatabaseWithMysql()
public function flushByTagRemovesCorrectRowsFromDatabaseWithMysql(): void
{
$subject = $this->getSubjectObject(true);
$subject->flushByTag('tagB');
......@@ -457,7 +457,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function flushByTagsRemovesCorrectRowsFromDatabaseWithMysql()
public function flushByTagsRemovesCorrectRowsFromDatabaseWithMysql(): void
{
$subject = $this->getSubjectObject(true);
$subject->flushByTags(['tagC', 'tagD']);
......@@ -475,7 +475,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushByTagWorksWithEmptyCacheTablesWithNonMysql()
public function flushByTagWorksWithEmptyCacheTablesWithNonMysql(): void
{
$subject = $this->getSubjectObject(true, false);
$subject->flushByTag('tagB');
......@@ -484,7 +484,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushByTagsWorksWithEmptyCacheTablesWithNonMysql()
public function flushByTagsWorksWithEmptyCacheTablesWithNonMysql(): void
{
$subject = $this->getSubjectObject(true, false);
$subject->flushByTags(['tagB', 'tagC']);
......@@ -493,7 +493,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushByTagRemovesCorrectRowsFromDatabaseWithNonMysql()
public function flushByTagRemovesCorrectRowsFromDatabaseWithNonMysql(): void
{
$subject = $this->getSubjectObject(true, false);
$subject->flushByTag('tagB');
......@@ -511,7 +511,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushByTagsRemovesCorrectRowsFromDatabaseWithNonMysql()
public function flushByTagsRemovesCorrectRowsFromDatabaseWithNonMysql(): void
{
$subject = $this->getSubjectObject(true, false);
$subject->flushByTags(['tagC', 'tagD']);
......@@ -533,7 +533,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function collectGarbageWorksWithEmptyTableWithMysql()
public function collectGarbageWorksWithEmptyTableWithMysql(): void
{
$subject = $this->getSubjectObject(true);
$subject->collectGarbage();
......@@ -546,7 +546,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function collectGarbageRemovesCacheEntryWithExpiredLifetimeWithMysql()
public function collectGarbageRemovesCacheEntryWithExpiredLifetimeWithMysql(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -579,7 +579,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function collectGarbageRemovesTagEntriesForCacheEntriesWithExpiredLifetimeWithMysql()
public function collectGarbageRemovesTagEntriesForCacheEntriesWithExpiredLifetimeWithMysql(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -612,7 +612,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
* @group not-mssql
* @group not-sqlite
*/
public function collectGarbageRemovesOrphanedTagEntriesFromTagsTableWithMysql()
public function collectGarbageRemovesOrphanedTagEntriesFromTagsTableWithMysql(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -659,7 +659,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function collectGarbageWorksWithEmptyTableWithNonMysql()
public function collectGarbageWorksWithEmptyTableWithNonMysql(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -678,7 +678,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function collectGarbageRemovesCacheEntryWithExpiredLifetimeWithNonMysql()
public function collectGarbageRemovesCacheEntryWithExpiredLifetimeWithNonMysql(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -707,7 +707,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function collectGarbageRemovesTagEntriesForCacheEntriesWithExpiredLifetimeWithNonMysql()
public function collectGarbageRemovesTagEntriesForCacheEntriesWithExpiredLifetimeWithNonMysql(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -736,7 +736,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function collectGarbageRemovesOrphanedTagEntriesFromTagsTableWithNonMysql()
public function collectGarbageRemovesOrphanedTagEntriesFromTagsTableWithNonMysql(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -783,7 +783,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
/**
* @test
*/
public function flushLeavesCacheAndTagsTableEmpty()
public function flushLeavesCacheAndTagsTableEmpty(): void
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......@@ -807,7 +807,7 @@ class Typo3DatabaseBackendTest extends FunctionalTestCase
*
* @return Typo3DatabaseBackend
*/
protected function getSubjectObject($returnMockObject = false, $isConnectionMysql = true)
protected function getSubjectObject($returnMockObject = false, $isConnectionMysql = true): Typo3DatabaseBackend
{
$frontendProphecy = $this->prophesize(FrontendInterface::class);
$frontendProphecy->getIdentifier()->willReturn('pages');
......
......@@ -26,7 +26,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
*/
class VariableFrontendTest extends FunctionalTestCase
{
public function insertSerializedArrayIntoLobAndRetrieveItDataProvider()
public function insertSerializedArrayIntoLobAndRetrieveItDataProvider(): array
{
$arrayToSerialize = [
'string' => 'Serialize a string',
......@@ -62,7 +62,7 @@ class VariableFrontendTest extends FunctionalTestCase
array $expected,
string $identifier,
array $arrayToSerialize
) {
): void {
$typo3DatabaseBackend = new Typo3DatabaseBackend('Testing');
$subject = new VariableFrontend($identifier, $typo3DatabaseBackend);
......
......@@ -57,7 +57,7 @@ class CategoryCollectionTest extends FunctionalTestCase
* @test
* @covers \TYPO3\CMS\Core\Category\Collection\CategoryCollection::fromArray
*/
public function checkIfFromArrayMethodSetCorrectProperties()
public function checkIfFromArrayMethodSetCorrectProperties(): void
{
$subject = new CategoryCollection('tx_test_test');
$subject->fromArray($this->collectionRecord);
......@@ -72,7 +72,7 @@ class CategoryCollectionTest extends FunctionalTestCase
* @test
* @covers \TYPO3\CMS\Core\Category\Collection\CategoryCollection::create
*/
public function canCreateDummyCollection()
public function canCreateDummyCollection(): void
{
$collection = CategoryCollection::create($this->collectionRecord);
self::assertInstanceOf(CategoryCollection::class, $collection);
......@@ -82,7 +82,7 @@ class CategoryCollectionTest extends FunctionalTestCase
* @test
* @covers \TYPO3\CMS\Core\Category\Collection\CategoryCollection::create
*/
public function canCreateDummyCollectionAndFillItems()
public function canCreateDummyCollectionAndFillItems(): void
{
$collection = CategoryCollection::create($this->collectionRecord, true);
self::assertInstanceOf(CategoryCollection::class, $collection);
......@@ -92,7 +92,7 @@ class CategoryCollectionTest extends FunctionalTestCase
* @test
* @covers \TYPO3\CMS\Core\Category\Collection\CategoryCollection::getCollectedRecords
*/
public function getCollectedRecordsReturnsEmptyRecordSet()
public function getCollectedRecordsReturnsEmptyRecordSet(): void
{
$subject = new CategoryCollection('tx_test_test');
$method = new \ReflectionMethod(CategoryCollection::class, 'getCollectedRecords');
......@@ -106,7 +106,7 @@ class CategoryCollectionTest extends FunctionalTestCase
* @test
* @covers \TYPO3\CMS\Core\Category\Collection\CategoryCollection::getStorageTableName
*/
public function isStorageTableNameEqualsToSysCategory()
public function isStorageTableNameEqualsToSysCategory(): void
{
self::assertEquals('sys_category', CategoryCollection::getStorageTableName());
}
......@@ -115,7 +115,7 @@ class CategoryCollectionTest extends FunctionalTestCase
* @test
* @covers \TYPO3\CMS\Core\Category\Collection\CategoryCollection::getStorageItemsField
*/
public function isStorageItemsFieldEqualsToItems()
public function isStorageItemsFieldEqualsToItems(): void
{
self::assertEquals('items', CategoryCollection::getStorageItemsField());
}
......@@ -123,7 +123,7 @@ class CategoryCollectionTest extends FunctionalTestCase
/**
* @test
*/
public function canLoadADummyCollectionFromDatabase()
public function canLoadADummyCollectionFromDatabase(): void
{
/** @var $collection CategoryCollection */
$collection = CategoryCollection::load(1, true, 'tx_test_test');
......@@ -156,7 +156,7 @@ class CategoryCollectionTest extends FunctionalTestCase
/**
* @test
*/
public function canLoadADummyCollectionFromDatabaseAndAddRecord()
public function canLoadADummyCollectionFromDatabaseAndAddRecord(): void
{
$collection = CategoryCollection::load(1, true, 'tx_test_test');
// Add a new record
......@@ -174,7 +174,7 @@ class CategoryCollectionTest extends FunctionalTestCase
/**
* @test
*/
public function canLoadADummyCollectionWithoutContentFromDatabase()