public function FieldsTest::excludedFieldIsNotRendered in Layout Plugin Views 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/FieldsTest.php \Drupal\Tests\layout_plugin_views\Unit\FieldsTest::excludedFieldIsNotRendered()
@test
File
- tests/
src/ Unit/ FieldsTest.php, line 220
Class
- FieldsTest
- @coversDefaultClass \Drupal\layout_plugin_views\Plugin\views\row\Fields @group Panels
Namespace
Drupal\Tests\layout_plugin_views\UnitCode
public function excludedFieldIsNotRendered() {
$this
->initializeSubjectUnderTest([
'assigned_regions' => [
'somefield' => 'left',
'some_other_field' => 'left',
],
]);
$this
->addFieldToMockedView('excluded_field', $this
->getMockedView(), TRUE);
$result = $this->sut
->render(new ResultRow([]));
$this
->assertRenderedRegions(TRUE, FALSE, FALSE, $result);
}