public function testApi_key_reset() { $apiKey = '16047a3e69f5245756d73b419348f0c7'; $service = $this->getMockBuilder('\\Box\\Mod\\Profile\\Service')->getMock(); $service->expects($this->atLeastOnce())->method('resetApiKey')->will($this->returnValue($apiKey)); $this->clientApi->setService($service); $this->clientApi->setIdentity(new \Model_Client()); $result = $this->clientApi->api_key_reset(array()); $this->assertEquals($result, $apiKey); }