You are here

class RealisticDummyContentUnitTestCaseDummyFile in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/test/includes/RealisticDummyContentEnvironmentTest.php \Drupal\realistic_dummy_content_api\Test\RealisticDummyContentUnitTestCaseDummyFile

Dummy file, used to test how fields manage files.

@group realistic_dummy_content

Hierarchy

Expanded class hierarchy of RealisticDummyContentUnitTestCaseDummyFile

File

api/src/test/includes/RealisticDummyContentEnvironmentTest.php, line 14

Namespace

Drupal\realistic_dummy_content_api\Test
View source
class RealisticDummyContentUnitTestCaseDummyFile {
  private $value;

  /**
   * Constructor.
   *
   * @param mixed $value
   *   The value to return.
   */
  public function __construct($value) {
    $this->value = $value;
  }

  /**
   * Returns the dummy value.
   *
   * @return mixed
   *   The value we used when creating this object.
   */
  public function value() {
    return $this->value;
  }

}

Members