public function testUpdate() { $service = $this->getMockBuilder('\\Box\\Mod\\Profile\\Service')->getMock(); $service->expects($this->atLeastOnce())->method('updateClient')->will($this->returnValue(true)); $this->clientApi->setService($service); $this->clientApi->setIdentity(new \Model_Client()); $data = array(); $result = $this->clientApi->update($data); $this->assertTrue($result); }