public function testGetDownloadDir() { $this->api = $this->getMock('Martial\\Transmission\\API\\RpcClient', ['sessionGet', 'getSessionId', 'freeSpace'], [$this->httpClient, '', '', $this->logger]); $this->api->method('sessionGet')->willReturn([Session\Get::DOWNLOAD_DIR => '/a/b/c']); $this->client = new TransmissionClient($this->api); $this->assertEquals('/a/b/c', $this->client->getDownloadDir()); }