class UnitTestCaseDummyFile in Realistic Dummy Content 8
Dummy file, used to test how fields manage files
Hierarchy
- class \Drupal\realistic_dummy_content_api\environments\UnitTestCaseDummyFile
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\environmentsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UnitTestCaseDummyFile:: |
private | property | ||
UnitTestCaseDummyFile:: |
function | Returns the dummy value. | ||
UnitTestCaseDummyFile:: |
function | Constructor. |