protected function DisplayJsonFeedTest::expectedFirstPageItems in JSON Feed 8
Calculates the expected number of items on the feed's first page.
Return value
int The expected number of items on the feed's first page.
2 calls to DisplayJsonFeedTest::expectedFirstPageItems()
- DisplayJsonFeedTest::testFeedItems in tests/
src/ Functional/ DisplayJsonFeedTest.php - Tests the feed items.
- DisplayJsonFeedTest::testFeedPagnation in tests/
src/ Functional/ DisplayJsonFeedTest.php - Test feed item pagination.
File
- tests/
src/ Functional/ DisplayJsonFeedTest.php, line 238
Class
- DisplayJsonFeedTest
- Tests the json_feed display plugin.
Namespace
Drupal\Tests\json_feed\FunctionalCode
protected function expectedFirstPageItems() {
return min($this->feedItemsPerPage, $this->nodesToCreate);
}