runRevisionsTests example

// Enable an additional language.     ConfigurableLanguage::createFromLangcode('de')->save();
  }

  /** * Check node revision related operations. */
  public function testRevisions() {

    // All revisable entity variations have to have the same results.     foreach (entity_test_entity_types(ENTITY_TEST_TYPES_REVISABLE) as $entity_type) {
      $this->runRevisionsTests($entity_type);
    }
  }

  /** * Executes the revision tests for the given entity type. * * @param string $entity_type * The entity type to run the tests with. */
  protected function runRevisionsTests($entity_type) {
    // Create a translatable test field.
Home | Imprint | This part of the site doesn't use cookies.