‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest:

Public Member Functions

 integration ()
 
 checkPaginatorWithDefaultConfiguration ()
 
 paginatorRespectsItemsPerPageConfiguration ()
 
 paginatorRespectsItemsPerPageConfigurationAndCurrentPage ()
 
 paginatorProperlyCalculatesLastPage ()
 
 withCurrentPageNumberThrowsInvalidArgumentExceptionIfCurrentPageIsLowerThanOne ()
 
 paginatorSetsCurrentPageToLastPageIfCurrentPageExceedsMaximum ()
 
 paginatorProperlyCalculatesOnlyOnePage ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

array $testExtensionsToLoad = ['typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example']
 
PostRepository $postRepository
 

Detailed Description

Definition at line 27 of file QueryResultPaginatorTest.php.

Member Function Documentation

◆ checkPaginatorWithDefaultConfiguration()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::checkPaginatorWithDefaultConfiguration ( )

Definition at line 55 of file QueryResultPaginatorTest.php.

◆ integration()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::integration ( )

A short integration test to check that the fixtures are as expected

Definition at line 48 of file QueryResultPaginatorTest.php.

◆ paginatorProperlyCalculatesLastPage()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::paginatorProperlyCalculatesLastPage ( )

Definition at line 96 of file QueryResultPaginatorTest.php.

◆ paginatorProperlyCalculatesOnlyOnePage()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::paginatorProperlyCalculatesOnlyOnePage ( )

Definition at line 138 of file QueryResultPaginatorTest.php.

◆ paginatorRespectsItemsPerPageConfiguration()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::paginatorRespectsItemsPerPageConfiguration ( )

Definition at line 66 of file QueryResultPaginatorTest.php.

◆ paginatorRespectsItemsPerPageConfigurationAndCurrentPage()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::paginatorRespectsItemsPerPageConfigurationAndCurrentPage ( )

Definition at line 81 of file QueryResultPaginatorTest.php.

◆ paginatorSetsCurrentPageToLastPageIfCurrentPageExceedsMaximum()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::paginatorSetsCurrentPageToLastPageIfCurrentPageExceedsMaximum ( )

Definition at line 124 of file QueryResultPaginatorTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::setUp ( )
protected

◆ withCurrentPageNumberThrowsInvalidArgumentExceptionIfCurrentPageIsLowerThanOne()

TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::withCurrentPageNumberThrowsInvalidArgumentExceptionIfCurrentPageIsLowerThanOne ( )

Definition at line 111 of file QueryResultPaginatorTest.php.

Member Data Documentation

◆ $postRepository

PostRepository TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::$postRepository
protected

Definition at line 33 of file QueryResultPaginatorTest.php.

◆ $testExtensionsToLoad

array TYPO3\CMS\Extbase\Tests\Functional\Pagination\QueryResultPaginatorTest::$testExtensionsToLoad = ['typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example']
protected

Definition at line 29 of file QueryResultPaginatorTest.php.