public function BlockTest::testBuildNoOverride in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/Plugin/views/display/BlockTest.php \Drupal\Tests\views\Unit\Plugin\views\display\BlockTest::testBuildNoOverride()
Tests the build method with no overriding.
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ views/ display/ BlockTest.php, line 69 - Contains \Drupal\Tests\views\Unit\Plugin\views\display\BlockTest.
Class
- BlockTest
- @coversDefaultClass \Drupal\views\Plugin\views\display\Block @group block
Namespace
Drupal\Tests\views\Unit\Plugin\views\displayCode
public function testBuildNoOverride() {
$this->executable
->expects($this
->never())
->method('setItemsPerPage');
$this->blockPlugin
->expects($this
->once())
->method('getConfiguration')
->will($this
->returnValue(array(
'items_per_page' => 'none',
)));
$this->blockDisplay
->preBlockBuild($this->blockPlugin);
}