/** * @covers ::applyDefaultValue */ public function testApplyDefaultValue() { // For each field on the entity the mock method has to be invoked once. $this->fieldItemList->expects($this->exactly(2))->method('applyDefaultValue'); $this->entityAdapter->applyDefaultValue(); }