public function testSave()
 {
     /** @var NotificationInterface $notification */
     $notification = $this->getMock(NotificationInterface::class);
     $this->objectManager->expects($this->at(0))->method('persist')->with($notification);
     $this->objectManager->expects($this->at(0))->method('flush');
     $result = $this->mapper->save($notification);
     $this->assertSame($notification, $result);
 }
 public function testSave()
 {
     /** @var NotificationInterface $notification */
     $notification = $this->getMockBuilder(NotificationInterface::class)->setMethods(['getId', 'getText', 'getDate', 'getUpdated', 'setUpdated', 'getUser', 'getRead', 'setRead'])->getMock();
     $notification->expects($this->at(0))->method('setUpdated');
     $this->objectManager->expects($this->at(0))->method('persist')->with($notification);
     $this->objectManager->expects($this->at(0))->method('flush');
     $result = $this->mapper->save($notification);
     $this->assertSame($notification, $result);
 }