Commit e09dc714 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

[TASK] Remove setter for setCoreData

parent b8d666b1
Pipeline #3425 passed with stages
in 4 minutes and 57 seconds
......@@ -32,7 +32,7 @@ class LTSVersionService
// Will be automatically update with UpdateCurrentVersionListTask see T3o\Ter\Task\UpdateCurrentVersionListTask
$sourceFile = PATH_site . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . 'currentcoredata.json';
$json = file_get_contents($sourceFile);
$this->setCoreData(json_decode($json, true));
$this->coreData = json_decode($json, true);
}
/**
......@@ -106,12 +106,4 @@ class LTSVersionService
{
return (int) substr($this->coreData['latest_old_lts'], 0, 1);
}
/**
* @param array $coreData
*/
public function setCoreData(array $coreData)
{
$this->coreData = $coreData;
}
}
\ No newline at end of file
......@@ -33,7 +33,7 @@ class LTSVersionServiceTest extends UnitTestCase
protected function setUp()
{
$this->subject = GeneralUtility::makeInstance(LTSVersionService::class);
$this->subject->setCoreData($this->getSampleData());
$this->subject->coreData = $this->getSampleData();
}
/**
......
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