public function FieldsTest::assertLayoutSelectionTitleIsSet 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::assertLayoutSelectionTitleIsSet()
@test
File
- tests/
src/ Unit/ FieldsTest.php, line 62
Class
- FieldsTest
- @coversDefaultClass \Drupal\layout_plugin_views\Plugin\views\row\Fields @group Panels
Namespace
Drupal\Tests\layout_plugin_views\UnitCode
public function assertLayoutSelectionTitleIsSet() {
$form = $this
->buildOptionsFrom();
$this
->assertNotEmpty($form['layout']['#title']);
$this
->assertEquals(TranslatableMarkup::class, get_class($form['layout']['#title']));
}