Skip to content
Snippets Groups Projects
Commit a11e14f9 authored by Philipp Gampe's avatar Philipp Gampe Committed by Markus Klein
Browse files

[FOLLOWUP][BUGFIX] Handle empty pid list in FrontendConfigurationManager

Add a unit test.

Resolves: #72414
Releases: master, 7.6
Change-Id: Iefff83ae483e4a760a9c7b973e40df50270407d5
Reviewed-on: https://review.typo3.org/45432


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent ee997142
Branches
Tags
No related merge requests found
......@@ -450,6 +450,21 @@ class FrontendConfigurationManagerTest extends \TYPO3\CMS\Core\Tests\UnitTestCas
);
}
/**
* @test
*/
public function overrideStoragePidIfStartingPointIsSetCorrectlyHandlesEmptyValuesFromGetTreeList()
{
$this->mockContentObject->expects($this->any())->method('getTreeList')->will($this->returnValue(''));
$this->mockContentObject->data = array('pages' => '0', 'recursive' => 1);
$frameworkConfiguration = array('persistence' => array('storagePid' => '98'));
$this->assertSame(
array('persistence' => array('storagePid' => '0')),
$this->frontendConfigurationManager->_call('overrideStoragePidIfStartingPointIsSet', $frameworkConfiguration)
);
}
/**
* @test
*/
......
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