You are here

public function FieldsTest::assertRegionAssignmentFieldset in Layout Plugin Views 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/FieldsTest.php \Drupal\Tests\layout_plugin_views\Unit\FieldsTest::assertRegionAssignmentFieldset()

@test

File

tests/src/Unit/FieldsTest.php, line 131

Class

FieldsTest
@coversDefaultClass \Drupal\layout_plugin_views\Plugin\views\row\Fields @group Panels

Namespace

Drupal\Tests\layout_plugin_views\Unit

Code

public function assertRegionAssignmentFieldset() {
  $form = $this
    ->buildOptionsFrom();
  $this
    ->assertEquals('fieldset', $form['assigned_regions']['#type']);
  $this
    ->assertNotEmpty($form['assigned_regions']['#title']);
  $this
    ->assertEquals(TranslatableMarkup::class, get_class($form['assigned_regions']['#title']));
  $this
    ->assertNotEmpty($form['assigned_regions']['#description']);
  $this
    ->assertEquals(TranslatableMarkup::class, get_class($form['assigned_regions']['#description']));
}