mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 14:16:46 +02:00
feat(tests): update tests for Registry Endpoints #477
This commit is contained in:
@@ -10,9 +10,12 @@ beforeEach(function() {
|
||||
|
||||
test('test /api/registry', function () {
|
||||
$response = $this->client->request('GET', 'https://test.flextype.org/api/registry', [
|
||||
'id' => 'flextype.manifest.version',
|
||||
'token' => 'e15dbc9336c924e31a5b3b4e66f96351'
|
||||
'query' => [
|
||||
'id' => 'flextype.manifest.version',
|
||||
'token' => 'e15dbc9336c924e31a5b3b4e66f96351'
|
||||
]
|
||||
]);
|
||||
|
||||
$this->assertEquals('0.9.12', json_decode($response->getBody())['data']['key']);
|
||||
$this->assertEquals('flextype.manifest.version', json_decode((string) $response->getBody(), true)['data']['key']);
|
||||
$this->assertEquals('0.9.11', json_decode((string) $response->getBody(), true)['data']['value']);
|
||||
});
|
||||
|
Reference in New Issue
Block a user