1 path_pattern.test PathPatternTestHelper::assertEntityPattern($entity_type, $bundle, $language = LANGUAGE_NONE, $expected)

File

core/modules/path/tests/path_pattern.test, line 118
Functionality tests for automatic path generation.

Class

PathPatternTestHelper
Helper test class with some added functions for testing.

Code

function assertEntityPattern($entity_type, $bundle, $language = LANGUAGE_NONE, $expected) {
  backdrop_static_reset('path_get_pattern_by_entity_type');
  $this->refreshVariables();
  $pattern = path_get_pattern_by_entity_type($entity_type, $bundle, $language);
  $this->assertIdentical($expected, $pattern);
}