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
8bfc5c08
Commit
8bfc5c08
authored
Nov 03, 2020
by
Oliver Bartsch
Committed by
Thomas Löffler
Nov 04, 2020
Browse files
Add data to fixtures
parent
e7ea093b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
extensions/ter_fe2/Tests/Unit/Fixtures/currentcoredata.json
0 → 100644
View file @
8bfc5c08
This diff is collapsed.
Click to expand it.
extensions/ter_fe2/Tests/Unit/Utility/VersionUtilityTest.php
View file @
8bfc5c08
...
...
@@ -17,11 +17,24 @@ namespace T3o\TerFe2\Tests\Unit\Utility;
* The TYPO3 project - inspiring people to share!
*/
use
TYPO3\CMS\Core\Core\Environment
;
/**
* Tests for VersionUtility
*/
class
VersionUtilityTest
extends
\
Nimut\TestingFramework\TestCase\UnitTestCase
{
protected
function
setUp
():
void
{
parent
::
setUp
();
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'BE'
][
'fileadminDir'
]
=
'fileadmin/'
;
file_put_contents
(
Environment
::
getPublicPath
()
.
'/'
.
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'BE'
][
'fileadminDir'
]
.
'currentcoredata.json'
,
file_get_contents
(
__DIR__
.
'/../Fixtures/currentcoredata.json'
)
);
}
/**
* @param array $dependencies
* @param string $versionList
...
...
@@ -31,11 +44,9 @@ class VersionUtilityTest extends \Nimut\TestingFramework\TestCase\UnitTestCase
*/
public
function
getCompatibleTypo3VersionsTest
(
array
$dependencies
,
string
$versionList
):
void
{
$subject
=
$this
->
getAccessibleMock
(
\
T3o\TerFe2\Utility\VersionUtility
::
class
,
[
'dummy'
]);
self
::
assertSame
(
$versionList
,
$subject
->
_call
(
'
getCompatibleTypo3Versions
'
,
$dependencies
)
\
T3o\TerFe2\Utility\VersionUtility
::
getCompatibleTypo3Versions
(
$dependencies
)
);
}
...
...
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