function BlockTest::testBuildNoOverride

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/views/display/BlockTest.php \Drupal\Tests\views\Unit\Plugin\views\display\BlockTest::testBuildNoOverride()
  2. 10 core/modules/views/tests/src/Unit/Plugin/views/display/BlockTest.php \Drupal\Tests\views\Unit\Plugin\views\display\BlockTest::testBuildNoOverride()
  3. 11.x 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 64

Class

BlockTest
@coversDefaultClass \Drupal\views\Plugin\views\display\Block @group block

Namespace

Drupal\Tests\views\Unit\Plugin\views\display

Code

public function testBuildNoOverride() {
    $this->executable
        ->expects($this->never())
        ->method('setItemsPerPage');
    $this->blockPlugin
        ->expects($this->once())
        ->method('getConfiguration')
        ->will($this->returnValue([
        'items_per_page' => 'none',
    ]));
    $this->blockDisplay
        ->preBlockBuild($this->blockPlugin);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.