Commit 03177945 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[TASK] Add unit test for first method in Typo3VersionService

parent c1e3a389
Pipeline #19854 failed with stages
in 4 minutes and 32 seconds
<?php
declare(strict_types = 1);
namespace T3o\TerFe2\Tests\Service;
/*
* This file is part of TYPO3 CMS-extension "ter_fe2".
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/
use Nimut\TestingFramework\TestCase\AbstractTestCase;
use T3o\TerFe2\Service\Typo3VersionService;
class Typo3VersionServiceTest extends AbstractTestCase
{
/**
* @test
*/
public function getAllMajorVersionsReturnsArrayWithMultipleMajorVersions()
{
$majorVersions = Typo3VersionService::getAllMajorVersions();
self::assertNotEmpty(
$majorVersions
);
self::assertIsArray(
$majorVersions
);
self::assertArrayHasKey(
0,
$majorVersions
);
self::assertIsArray(
$majorVersions[0]
);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment