TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

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

Protected Attributes

 $pageSelectObject
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case

Author
Christian Kuhn lolli.nosp@m.@sch.nosp@m.warzb.nosp@m.u.ch
Oliver Klee typo3.nosp@m.-cod.nosp@m.ing@o.nosp@m.live.nosp@m.rklee.nosp@m..de

Definition at line 22 of file PageRepositoryTest.php.

Member Function Documentation

◆ enableFieldsDoesFilterToCurrentAndLiveWorkspaceForRecordsInPreview()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::enableFieldsDoesFilterToCurrentAndLiveWorkspaceForRecordsInPreview ( )

◆ enableFieldsDoesNotHidePlaceholdersInPreview()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::enableFieldsDoesNotHidePlaceholdersInPreview ( )

◆ enableFieldsDoesNotHideVersionedRecordsWhenCheckingVersionOverlays()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::enableFieldsDoesNotHideVersionedRecordsWhenCheckingVersionOverlays ( )

◆ enableFieldsHidesVersionedRecordsAndPlaceholders()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::enableFieldsHidesVersionedRecordsAndPlaceholders ( )

◆ getExtUrlForDokType3AndUrlType0PrependsSiteUrl()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::getExtUrlForDokType3AndUrlType0PrependsSiteUrl ( )
Test:

Definition at line 92 of file PageRepositoryTest.php.

◆ getExtUrlForDokType3AndUrlType1AddsHttpSchemeToUrl()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::getExtUrlForDokType3AndUrlType1AddsHttpSchemeToUrl ( )
Test:

Definition at line 81 of file PageRepositoryTest.php.

◆ getPathFromRootLineForEmptyRootLineReturnsEmptyString()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::getPathFromRootLineForEmptyRootLineReturnsEmptyString ( )
Test:

Definition at line 71 of file PageRepositoryTest.php.

◆ getShouldFieldBeOverlaidData()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::getShouldFieldBeOverlaidData ( )

Data provider for shouldFieldBeOverlaid

Definition at line 144 of file PageRepositoryTest.php.

◆ isGetPageHookCalled()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::isGetPageHookCalled ( )

Tests whether the getPage Hook is called correctly.

Test:

Definition at line 43 of file PageRepositoryTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ isGetPagePreProcessCalledCallback()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::isGetPagePreProcessCalledCallback ( )

Handles the arguments that have been sent to the getPage_preProcess hook

Definition at line 58 of file PageRepositoryTest.php.

References $uid.

◆ noPagesFromWorkspaceAreShownLive()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::noPagesFromWorkspaceAreShownLive ( )
Test:

Definition at line 177 of file PageRepositoryTest.php.

References $GLOBALS.

◆ previewShowsPagesFromLiveAndCurrentWorkspace()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::previewShowsPagesFromLiveAndCurrentWorkspace ( )
Test:

Definition at line 207 of file PageRepositoryTest.php.

References $GLOBALS.

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::setUp ( )

Sets up this testcase

Definition at line 32 of file PageRepositoryTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Tests\BaseTestCase\getAccessibleMock().

◆ shouldFieldBeOverlaid()

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::shouldFieldBeOverlaid (   $field,
  $table,
  $value,
  $expected,
  $comment = '' 
)
Test:
getShouldFieldBeOverlaidData

Definition at line 107 of file PageRepositoryTest.php.

References $GLOBALS, and $result.

Member Data Documentation

◆ $pageSelectObject

TYPO3\CMS\Frontend\Tests\Unit\Page\PageRepositoryTest::$pageSelectObject
protected

Definition at line 27 of file PageRepositoryTest.php.