‪TYPO3CMS  10.4
TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest:
TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase

Public Member Functions

 hooksAreExecutedForNewRecords ()
 
 hooksAreExecutedForExistingRecords ()
 
 hooksAreExecutedForNewRelations ()
 
 hooksAreExecutedForExistingRelations ()
 

Public Attributes

const VALUE_PageId = 89
 
const VALUE_ContentId = 297
 
const TABLE_Content = 'tt_content'
 
const TABLE_Hotel = 'tx_irretutorial_1nff_hotel'
 
const TABLE_Category = 'sys_category'
 
const FIELD_ContentHotel = 'tx_irretutorial_1nff_hotels'
 
const FIELD_Categories = 'categories'
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
const VALUE_BackendUserId = 1
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 assertHookInvocationsCount (array $methodNames, int $count)
 
 assertHookInvocationsPayload (array $methodNames, array $assertions)
 
 assertHookInvocationPayload (string $methodName, array $assertions)
 
int[] findAllArrayValuesInHaystack (array $haystack, array $assertion)
 
bool equals (array $left, array $right)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
 setUpFrontendSite (int $pageId, array $additionalLanguages=[])
 
 setWorkspaceId (int $workspaceId)
 
ActionService getActionService ()
 
 importScenarioDataSet ($dataSetName)
 
 assertAssertionDataSet ($dataSetName)
 
 assertErrorLogEntries (array $expectedMessages=null)
 
 assertCleanReferenceIndex ()
 
HasRecordConstraint getRequestSectionHasRecordConstraint ()
 
DoesNotHaveRecordConstraint getRequestSectionDoesNotHaveRecordConstraint ()
 
StructureHasRecordConstraint getRequestSectionStructureHasRecordConstraint ()
 
StructureDoesNotHaveRecordConstraint getRequestSectionStructureDoesNotHaveRecordConstraint ()
 

Protected Attributes

bool $assertCleanReferenceIndex = false
 
HookFixture $hookFixture
 
string $scenarioDataSetDirectory = 'typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/DataSet/'
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
bool $assertCleanReferenceIndex = true
 
string $scenarioDataSetDirectory
 
string $assertionDataSetDirectory
 
int null $expectedErrorLogEntries = 0
 
array $testExtensionsToLoad
 
array $pathsToLinkInTestInstance
 
array $recordIds = array( )
 
ActionService $actionService
 
TYPO3 CMS Core Authentication BackendUserAuthentication $backendUser
 
array $siteLanguageConfiguration
 

Detailed Description

Tests triggering hook execution in DataHandler.

Definition at line 28 of file HookTest.php.

Member Function Documentation

◆ assertHookInvocationPayload()

◆ assertHookInvocationsCount()

◆ assertHookInvocationsPayload()

◆ equals()

bool TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::equals ( array  $left,
array  $right 
)
protected
Parameters
array$left
array$right
Returns
‪bool

Definition at line 346 of file HookTest.php.

Referenced by TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest\findAllArrayValuesInHaystack().

◆ findAllArrayValuesInHaystack()

int [] TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::findAllArrayValuesInHaystack ( array  $haystack,
array  $assertion 
)
protected

◆ hooksAreExecutedForExistingRecords()

TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::hooksAreExecutedForExistingRecords ( )

◆ hooksAreExecutedForExistingRelations()

◆ hooksAreExecutedForNewRecords()

◆ hooksAreExecutedForNewRelations()

◆ setUp()

TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::setUp ( )
protected

◆ tearDown()

TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::tearDown ( )
protected

Member Data Documentation

◆ $assertCleanReferenceIndex

bool TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::$assertCleanReferenceIndex = false
protected

Reference index testing is not relevant here

Definition at line 40 of file HookTest.php.

◆ $hookFixture

HookFixture TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::$hookFixture
protected

Definition at line 44 of file HookTest.php.

◆ $scenarioDataSetDirectory

string TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::$scenarioDataSetDirectory = 'typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/DataSet/'
protected

Definition at line 48 of file HookTest.php.

◆ FIELD_Categories

const TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::FIELD_Categories = 'categories'

Definition at line 36 of file HookTest.php.

◆ FIELD_ContentHotel

const TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::FIELD_ContentHotel = 'tx_irretutorial_1nff_hotels'

Definition at line 35 of file HookTest.php.

◆ TABLE_Category

const TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::TABLE_Category = 'sys_category'

Definition at line 34 of file HookTest.php.

◆ TABLE_Content

const TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::TABLE_Content = 'tt_content'

◆ TABLE_Hotel

const TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::TABLE_Hotel = 'tx_irretutorial_1nff_hotel'

Definition at line 33 of file HookTest.php.

◆ VALUE_ContentId

const TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::VALUE_ContentId = 297

Definition at line 31 of file HookTest.php.

◆ VALUE_PageId

const TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::VALUE_PageId = 89

Definition at line 30 of file HookTest.php.