Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
03177945
Commit
03177945
authored
Nov 27, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/ter_fe2/Tests/Unit/Service/Typo3VersionServiceTest.php
0 → 100644
View file @
03177945
<?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
]
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment