diff --git a/Tests/Functional/Hooks/DataHandler/NonAllowedTablesTest.php b/Tests/Functional/Hooks/DataHandler/NonAllowedTablesTest.php index 11b4806..a9cbaae 100644 --- a/Tests/Functional/Hooks/DataHandler/NonAllowedTablesTest.php +++ b/Tests/Functional/Hooks/DataHandler/NonAllowedTablesTest.php @@ -50,7 +50,11 @@ class NonAllowedTablesTest extends AbstractDataHandlerTest $this->subject->expects($this->exactly(1)) ->method('update') ->with('pages', $this->callback(function (array $record) { - return isset($record['uid']) && $record['uid'] === 1; + if ($this->isLegacyVersion()) { + return isset($record['uid']) && $record['uid'] === '1'; + } else { + return isset($record['uid']) && $record['uid'] === 1; + } })); $tce = GeneralUtility::makeInstance(Typo3DataHandler::class); @@ -73,7 +77,11 @@ class NonAllowedTablesTest extends AbstractDataHandlerTest $this->subject->expects($this->exactly(1)) ->method('update') ->with('pages', $this->callback(function (array $record) { - return isset($record['uid']) && $record['uid'] === 1; + if ($this->isLegacyVersion()) { + return isset($record['uid']) && $record['uid'] === '1'; + } else { + return isset($record['uid']) && $record['uid'] === 1; + } })); $tce = GeneralUtility::makeInstance(Typo3DataHandler::class); @@ -96,7 +104,11 @@ class NonAllowedTablesTest extends AbstractDataHandlerTest $this->subject->expects($this->exactly(1)) ->method('update') ->with('pages', $this->callback(function (array $record) { - return isset($record['uid']) && $record['uid'] === 1; + if ($this->isLegacyVersion()) { + return isset($record['uid']) && $record['uid'] === '1'; + } else { + return isset($record['uid']) && $record['uid'] === 1; + } })); $tce = GeneralUtility::makeInstance(Typo3DataHandler::class); diff --git a/Tests/Functional/Hooks/DataHandler/ProcessesAllowedTablesTest.php b/Tests/Functional/Hooks/DataHandler/ProcessesAllowedTablesTest.php index 279a113..5a571d3 100644 --- a/Tests/Functional/Hooks/DataHandler/ProcessesAllowedTablesTest.php +++ b/Tests/Functional/Hooks/DataHandler/ProcessesAllowedTablesTest.php @@ -53,7 +53,11 @@ class ProcessesAllowedTablesTest extends AbstractDataHandlerTest $this->subject->expects($this->exactly(1)) ->method('update') ->with('pages', $this->callback(function (array $record) { - return isset($record['uid']) && $record['uid'] === 1; + if ($this->isLegacyVersion()) { + return isset($record['uid']) && $record['uid'] === '1'; + } else { + return isset($record['uid']) && $record['uid'] === 1; + } })); $tce = GeneralUtility::makeInstance(Typo3DataHandler::class); @@ -94,7 +98,11 @@ class ProcessesAllowedTablesTest extends AbstractDataHandlerTest [ $this->equalTo('pages'), $this->callback(function ($record) { - return isset($record['uid']) && $record['uid'] === 1; + if ($this->isLegacyVersion()) { + return isset($record['uid']) && $record['uid'] === '1'; + } else { + return isset($record['uid']) && $record['uid'] === 1; + } }) ] ); @@ -137,7 +145,11 @@ class ProcessesAllowedTablesTest extends AbstractDataHandlerTest [ $this->equalTo('pages'), $this->callback(function ($record) { - return isset($record['uid']) && $record['uid'] === 1; + if ($this->isLegacyVersion()) { + return isset($record['uid']) && $record['uid'] === '1'; + } else { + return isset($record['uid']) && $record['uid'] === 1; + } }) ] );