function ViewExecutableTest::testSetOffsetBeforePreRender
Same name in other branches
- 9 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testSetOffsetBeforePreRender()
- 8.9.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testSetOffsetBeforePreRender()
- 10 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testSetOffsetBeforePreRender()
@covers ::setOffset @covers ::getOffset
File
-
core/
modules/ views/ tests/ src/ Unit/ ViewExecutableTest.php, line 625
Class
- ViewExecutableTest
- @coversDefaultClass \Drupal\views\ViewExecutable @group views
Namespace
Drupal\Tests\views\UnitCode
public function testSetOffsetBeforePreRender() : void {
/** @var \Drupal\views\ViewExecutable|\PHPUnit\Framework\MockObject\MockObject $view */
$view = current($this->setupBaseViewAndDisplay());
$view->setOffset(12);
$this->assertEquals(12, $view->getOffset());
$this->assertContains('offset:12', $view->element['#cache']['keys']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.