Example #1
0
 public function testUpdateTranslation()
 {
     $url = $this->client->getApiUrl('translation', array('master-file-name' => 'filename', 'language-tag' => 'it'));
     $response = json_decode($this->client->updateTranslation('filename', 'it', $this->fixtureFilePath), true);
     $this->assertEquals($url, $response['url']);
     $this->assertEquals('POST', $response['method']);
     $this->assertEquals('multipart/form-data', $response['mime-type']);
 }