/** * @covers ::onChange */ public function testOnChange() { $entity = $this->getMock('\\Drupal\\Core\\Entity\\ContentEntityInterface'); $entity->expects($this->once())->method('onChange')->with('foo')->willReturn(NULL); $this->entityAdapter->setValue($entity); $this->entityAdapter->onChange('foo'); }