migration = $this->prophesize(MigrationInterface::class); $this->storage = $this->prophesize(EntityStorageInterface::class); $this->entityType = $this->prophesize(EntityTypeInterface::class); $this->entityType->getPluralLabel()->willReturn('wonkiness'); $this->storage->getEntityType()->willReturn($this->entityType->reveal()); $this->storage->getEntityTypeId()->willReturn('foo'); $this->entityManager = $this->prophesize(EntityManagerInterface::class); } } /** * Stub class for BaseFieldDefinition. */ class BaseFieldDefinitionTest extends BaseFieldDefinition { public static function create($type) { return new static([]); } public function getSettings() { return []; } public function getType() { return 'integer'; } }