Commit 8bfc5c08 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Thomas Löffler
Browse files

Add data to fixtures

parent e7ea093b
This diff is collapsed.
......@@ -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)
);
}
......
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