Commit e8bc2624 authored by Helmut Hummel's avatar Helmut Hummel
Browse files

[BUGFIX] Mock locked records for DataProviderTest

The DataProviderTest calls BackendUtility::isRecordLocked
statically. We cannot mock that call, but we can
"mock" a locked record so that BackendUtility::isRecordLocked
does not query the database.

Resolves: #56472
Releases: 6.2
Change-Id: I268a7a900a0f2dcbf248f6a4d856354c7b1cdcd6
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
parent 2e06fc19
......@@ -39,6 +39,7 @@ class DataProviderTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
public function setUp() {
$GLOBALS['TYPO3_CONF_VARS']['BE']['pageTree']['preloadLimit'] = 0;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/tree/pagetree/class.t3lib_tree_pagetree_dataprovider.php']['postProcessCollections'] = array();
$this->fixture = new \TYPO3\CMS\Backend\Tree\Pagetree\DataProvider();
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