‪TYPO3CMS  11.5
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 TYPO3\CMS\Core\Log\LogDataTrait

Public Member Functions

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

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)
 
 assertErrorLogEntries (array $expectedMessages=null)
 
 assertCleanReferenceIndex ()
 
HasRecordConstraint getRequestSectionHasRecordConstraint ()
 
DoesNotHaveRecordConstraint getRequestSectionDoesNotHaveRecordConstraint ()
 
StructureHasRecordConstraint getRequestSectionStructureHasRecordConstraint ()
 
StructureDoesNotHaveRecordConstraint getRequestSectionStructureDoesNotHaveRecordConstraint ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
array null unserializeLogData ($logData)
 
string formatLogDetails (string $detailString, $substitutes)
 

Protected Attributes

const VALUE_PageId = 89
 
const VALUE_ContentId = 297
 
const TABLE_Content = 'tt_content'
 
const TABLE_Hotel = 'tx_testirreforeignfield_hotel'
 
const TABLE_Category = 'sys_category'
 
const FIELD_ContentHotel = 'tx_testirreforeignfield_hotels'
 
const FIELD_Categories = 'categories'
 
HookFixture $hookFixture
 
 $testExtensionsToLoad
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
const VALUE_BackendUserId = 1
 
const VALUE_WorkspaceId = 0
 
int null $expectedErrorLogEntries = 0
 
 $configurationToUseInTestInstance
 
array $recordIds = array( )
 
ActionService $actionService
 
BackendUserAuthentication $backendUser
 
array $siteLanguageConfiguration
 

Additional Inherited Members

- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
static formatLogDetailsStatic (string $detailString, array $substitutes)
 

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 352 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

◆ verifyCleanReferenceIndex()

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

Definition at line 72 of file HookTest.php.

Member Data Documentation

◆ $hookFixture

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

Definition at line 40 of file HookTest.php.

◆ $testExtensionsToLoad

TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\HookTest::$testExtensionsToLoad
protected
Initial value:
= array(
'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield',
'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial',
)

Definition at line 42 of file HookTest.php.

◆ FIELD_Categories

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

Definition at line 36 of file HookTest.php.

◆ FIELD_ContentHotel

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

Definition at line 35 of file HookTest.php.

◆ TABLE_Category

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

Definition at line 34 of file HookTest.php.

◆ TABLE_Content

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

◆ TABLE_Hotel

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

Definition at line 33 of file HookTest.php.

◆ VALUE_ContentId

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

Definition at line 31 of file HookTest.php.

◆ VALUE_PageId

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

Definition at line 30 of file HookTest.php.