public function EntityViewModeTestHelper::assertActualViewMode in Entity view modes 7
2 calls to EntityViewModeTestHelper::assertActualViewMode()
File
- ./
entity_view_mode.test, line 54 - Test integration for the entity_view_mode module.
Class
- EntityViewModeTestHelper
- @file Test integration for the entity_view_mode module.
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, "View mode {$view_mode} for entity type {$entity_type} and bundle {$bundle} actually uses view mode {$actual_view_mode}, expected {$expected_view_mode}.");
}