public function testDeleteUser() { $user = $this->getUser(); $this->om->expects($this->once())->method('remove')->with($this->equalTo($user)); $this->om->expects($this->once())->method('flush'); $this->userManager->deleteUser($user); }