You are here

public function EntityViewModeTestHelper::assertActualViewMode in Entity view modes 7

2 calls to EntityViewModeTestHelper::assertActualViewMode()
EntityViewModeTestHelper::assertViewModeCustomDisplay in ./entity_view_mode.test
EntityViewModeTestHelper::assertViewModeDefaultDisplay in ./entity_view_mode.test

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}.");
}