/** * @covers Rcm\Plugin\PluginInterface::saveInstance * @covers RcmSocialButtons\Controller\PluginController::saveInstance */ function testSaveAction() { $em = $this->getEmMock(); $em->expects($this->once())->method('persist'); $em->expects($this->once())->method('flush'); $this->unit->setEm($em); $this->unit->saveInstance(42, '<p>hi</p>'); }