You are here

class UnitTestCaseDummyFile in Realistic Dummy Content 8

Dummy file, used to test how fields manage files

Hierarchy

Expanded class hierarchy of UnitTestCaseDummyFile

1 file declares its use of UnitTestCaseDummyFile
ValueFieldTest.php in api/tests/src/Unit/attributes/ValueFieldTest.php
Define autoload class.

File

api/src/environments/UnitTestCaseDummyFile.php, line 14
Define autoload class.

Namespace

Drupal\realistic_dummy_content_api\environments
View source
class UnitTestCaseDummyFile {
  private $value;

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

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

}

Members