1 path_pattern.test PathPatternTestHelper::assertEntityPattern($entity_type, $bundle, $langcode, $expected)

File

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

Class

PathPatternTestHelper
Helper test class with some added functions for testing.

Code

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