You are here

DraftyWebTestCase.test in Drafty 7

File

tests/DraftyWebTestCase.test
View source
<?php

/**
 * Defines a base class for testing Drafty revision support.
 */
class DraftyWebTestCase extends NodeWebTestCase {

  /**
   * {@inheritdoc}
   */
  function setUp(array $modules = array()) {
    $modules[] = 'drafty';
    parent::setUp($modules);
  }

  /**
   * Make it easy for drafty_enforce to subclass.
   *
   * @param $entity
   *   An entity object.
   */
  protected function setRevision($entity) {
    $entity->revision = TRUE;
  }

}

Classes

Namesort descending Description
DraftyWebTestCase Defines a base class for testing Drafty revision support.