public function ViewModeIefTableTest::testViewMode in Inline Entity Form Table View Mode 8.2
Check the creation of the view mode ief_table automatically.
File
- tests/
src/ Functional/ ViewModeIefTableTest.php, line 47
Class
- ViewModeIefTableTest
- Test the view mode ief_table.
Namespace
Drupal\Tests\ief_table_view_mode\FunctionalCode
public function testViewMode() {
$view_mode = EntityViewMode::load('node.' . EntityInlineTableViewModeForm::IEF_TABLE_VIEW_MODE_NAME);
$this
->assertNull($view_mode, 'The view mode Inline Entity Form Table not exists');
$this
->configureFieldAndWidget('node', 'article', 'field_reference');
$view_mode = EntityViewMode::load('node.' . EntityInlineTableViewModeForm::IEF_TABLE_VIEW_MODE_NAME);
$this
->assertNotNull($view_mode, 'The view mode Inline Entity Form Table now exists');
}