public function testRemoveCertificate() { $this->certificateManager ->expects($this->once()) ->method('removeCertificate') ->with('CertificateToRemove'); $this->assertEquals(new DataResponse(), $this->certificateController->removePersonalRootCertificate('CertificateToRemove')); }