public function TestMediaEntityConstraints::__construct in Media entity slideshow 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/ConstraintsTest.php \Drupal\Tests\media_entity_slideshow\Unit\TestMediaEntityConstraints::__construct()
TestMediaEntityConstraints constructor.
Parameters
string $name: The source field name used for this test.
string|null $value: (optional) The source field value used for this test.
File
- tests/
src/ Unit/ ConstraintsTest.php, line 78
Class
- TestMediaEntityConstraints
- Mock class to test the ItemsCount constraint.
Namespace
Drupal\Tests\media_entity_slideshow\UnitCode
public function __construct($name, $value = NULL) {
$this->sourceFields[$name] = new TestField($value);
}