You are here

public function TestMediaEntityConstraints::get in Media entity slideshow 8

Same name and namespace in other branches
  1. 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\Unit

Code

public function get($name) {
  return $this->sourceFields[$name];
}