1 field_ui.test public FieldUIViewModeTestHelper::assertActualViewMode($entity_type, $bundle, $view_mode, $expected_view_mode)

File

core/modules/field_ui/tests/field_ui.test, line 923
Tests for field_ui.module.

Class

FieldUIViewModeTestHelper
Helper class for testing display mode functionality.

Code

public function assertActualViewMode($entity_type, $bundle, $view_mode, $expected_view_mode) {
  $actual_view_mode = $this->getActualViewMode($entity_type, $bundle, $view_mode);
  return $this->assertIdentical($expected_view_mode, $actual_view_mode, "Display mode $view_mode for entity type $entity_type and bundle $bundle actually uses display mode $actual_view_mode, expected $expected_view_mode.");
}