TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PageRepositoryTest Class Reference
Inheritance diagram for PageRepositoryTest:

Public Member Functions

 isGetPageHookCalled ()
 
 isGetPagePreProcessCalledCallback ()
 
 getPathFromRootLineForEmptyRootLineReturnsEmptyString ()
 
 getExtUrlForDokType3AndUrlType1AddsHttpSchemeToUrl ()
 
 getExtUrlForDokType3AndUrlType0PrependsSiteUrl ()
 
 shouldFieldBeOverlaid ($field, $table, $value, $expected, $comment= '')
 
 getShouldFieldBeOverlaidData ()
 
 noPagesFromWorkspaceAreShownLive ()
 
 previewShowsPagesFromLiveAndCurrentWorkspace ()
 
 enableFieldsHidesVersionedRecordsAndPlaceholders ()
 
 enableFieldsDoesNotHidePlaceholdersInPreview ()
 
 enableFieldsDoesFilterToCurrentAndLiveWorkspaceForRecordsInPreview ()
 
 enableFieldsDoesNotHideVersionedRecordsWhenCheckingVersionOverlays ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $pageSelectObject
 
 $defaultTcaForPages
 

Detailed Description

Test case

Definition at line 20 of file Unit/Page/PageRepositoryTest.php.

Member Function Documentation

enableFieldsDoesFilterToCurrentAndLiveWorkspaceForRecordsInPreview ( )
Test:

Definition at line 315 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

enableFieldsDoesNotHidePlaceholdersInPreview ( )
Test:

Definition at line 291 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

enableFieldsDoesNotHideVersionedRecordsWhenCheckingVersionOverlays ( )
Test:

Definition at line 339 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

enableFieldsHidesVersionedRecordsAndPlaceholders ( )
Test:

Definition at line 267 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

getExtUrlForDokType3AndUrlType0PrependsSiteUrl ( )
Test:

Definition at line 114 of file Unit/Page/PageRepositoryTest.php.

getExtUrlForDokType3AndUrlType1AddsHttpSchemeToUrl ( )
Test:

Definition at line 102 of file Unit/Page/PageRepositoryTest.php.

getPathFromRootLineForEmptyRootLineReturnsEmptyString ( )
Test:

Definition at line 91 of file Unit/Page/PageRepositoryTest.php.

getShouldFieldBeOverlaidData ( )

Data provider for shouldFieldBeOverlaid

Definition at line 168 of file Unit/Page/PageRepositoryTest.php.

isGetPageHookCalled ( )

Tests whether the getPage Hook is called correctly.

Test:

Definition at line 61 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

isGetPagePreProcessCalledCallback ( )

Handles the arguments that have been sent to the getPage_preProcess hook

Definition at line 77 of file Unit/Page/PageRepositoryTest.php.

noPagesFromWorkspaceAreShownLive ( )
Test:

Definition at line 202 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

previewShowsPagesFromLiveAndCurrentWorkspace ( )
Test:

Definition at line 235 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

setUp ( )
protected

Sets up this testcase

Definition at line 49 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

shouldFieldBeOverlaid (   $field,
  $table,
  $value,
  $expected,
  $comment = '' 
)
Test:
getShouldFieldBeOverlaidData

Definition at line 130 of file Unit/Page/PageRepositoryTest.php.

References $GLOBALS.

Member Data Documentation

$defaultTcaForPages
protected
Initial value:
= array(
'ctrl' => array(
'label' => 'title',
'tstamp' => 'tstamp',
'sortby' => 'sorting',
'type' => 'doktype',
'versioningWS' => true,
'origUid' => 't3_origuid',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
'fe_group' => 'fe_group'
),
),
'columns' => array()
)

Definition at line 27 of file Unit/Page/PageRepositoryTest.php.

$pageSelectObject
protected

Definition at line 25 of file Unit/Page/PageRepositoryTest.php.