public function ResultTest::testResultArea in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::testResultArea()
Tests the rendered output of the Result area handler.
@dataProvider providerTestResultArea
Parameters
string $content: The content to use when rendering the handler.
string $expected: The expected content string.
int $items_per_page: The items per page of the configuration.
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ ResultTest.php, line 84 - Contains \Drupal\Tests\views\Unit\Plugin\area\ResultTest.
Class
- ResultTest
- @coversDefaultClass \Drupal\views\Plugin\views\area\Result @group views
Namespace
Drupal\Tests\views\Unit\Plugin\areaCode
public function testResultArea($content, $expected, $items_per_page = 0) {
$this
->setupViewPager($items_per_page);
$this->resultHandler->options['content'] = $content;
$this
->assertEquals(array(
'#markup' => $expected,
), $this->resultHandler
->render());
}