Fixes ACCOUNTS-5FF. Handle 204 response from Chrly.

This commit is contained in:
ErickSkrauch
2019-05-13 19:39:11 +03:00
parent 02a7d3815d
commit 194a7acd2a
5 changed files with 47 additions and 25 deletions

View File

@@ -50,7 +50,7 @@ class SessionServerSteps extends FunctionalTester {
],
]);
$this->canSeeResponseJsonMatchesJsonPath('$.properties[0].value');
$value = json_decode($this->grabResponse(), true)['properties'][0]['value'];
$value = $this->grabDataFromResponseByJsonPath('$.properties[0].value')[0];
$decoded = json_decode(base64_decode($value), true);
$this->assertArrayHasKey('timestamp', $decoded);
$this->assertArrayHasKey('textures', $decoded);
@@ -61,7 +61,6 @@ class SessionServerSteps extends FunctionalTester {
$this->assertArrayHasKey('SKIN', $textures);
$skinTextures = $textures['SKIN'];
$this->assertArrayHasKey('url', $skinTextures);
$this->assertArrayHasKey('hash', $skinTextures);
}
}