Update total count of countries and languages in LocaleBase tests
This commit is contained in:
parent
1bd213830b
commit
16ed2583df
|
@ -45,7 +45,7 @@ trait LocaleBase
|
|||
|
||||
$this->assertEquals($response['headers']['status-code'], 200);
|
||||
$this->assertIsArray($response['body']);
|
||||
$this->assertEquals(194, $response['body']['total']);
|
||||
$this->assertEquals(195, $response['body']['total']);
|
||||
$this->assertEquals($response['body']['countries'][0]['name'], 'Afghanistan');
|
||||
$this->assertEquals($response['body']['countries'][0]['code'], 'AF');
|
||||
|
||||
|
@ -59,7 +59,7 @@ trait LocaleBase
|
|||
|
||||
$this->assertEquals($response['headers']['status-code'], 200);
|
||||
$this->assertIsArray($response['body']);
|
||||
$this->assertEquals(194, $response['body']['total']);
|
||||
$this->assertEquals(195, $response['body']['total']);
|
||||
$this->assertEquals($response['body']['countries'][0]['name'], 'Afganistán');
|
||||
$this->assertEquals($response['body']['countries'][0]['code'], 'AF');
|
||||
|
||||
|
@ -120,7 +120,7 @@ trait LocaleBase
|
|||
|
||||
$this->assertEquals($response['headers']['status-code'], 200);
|
||||
$this->assertIsArray($response['body']);
|
||||
$this->assertEquals(194, $response['body']['total']);
|
||||
$this->assertEquals(195, $response['body']['total']);
|
||||
$this->assertIsArray($response['body']['phones']);
|
||||
$this->assertEquals($response['body']['phones'][0]['code'], '+1');
|
||||
$this->assertEquals($response['body']['phones'][0]['countryName'], 'Canada');
|
||||
|
@ -247,7 +247,7 @@ trait LocaleBase
|
|||
}
|
||||
|
||||
$this->assertEquals($response['headers']['status-code'], 200);
|
||||
$this->assertEquals(194, $response['body']['total']);
|
||||
$this->assertEquals(195, $response['body']['total']);
|
||||
|
||||
$response = $this->client->call(Client::METHOD_GET, '/locale/continents', [
|
||||
'content-type' => 'application/json',
|
||||
|
|
Loading…
Reference in a new issue