public function TestMediaEntityConstraints::get 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::get()
Mocks get() on \Drupal\Core\Entity\FieldableEntityInterface.
File
- tests/
src/ Unit/ ConstraintsTest.php, line 85
Class
- TestMediaEntityConstraints
- Mock class to test the ItemsCount constraint.
Namespace
Drupal\Tests\media_entity_slideshow\UnitCode
public function get($name) {
return $this->sourceFields[$name];
}