You are here

function PathautoTestHelper::assertEntityPattern in Pathauto 7

Same name and namespace in other branches
  1. 6.2 pathauto.test \PathautoTestHelper::assertEntityPattern()
  2. 6 pathauto.test \PathautoTestHelper::assertEntityPattern()
1 call to PathautoTestHelper::assertEntityPattern()
PathautoUnitTestCase::testEntityBundleRenamingDeleting in ./pathauto.test

File

./pathauto.test, line 112
Functionality tests for Pathauto.

Class

PathautoTestHelper
Helper test class with some added functions for testing.

Code

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