From ebf995ff41f711974e4fe9369760a2ddc29382b5 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 22 Nov 2020 19:05:02 +0300 Subject: [PATCH] feat(tests): update tests for Registry Endpoints #477 --- tests/Endpoints/RegistryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Endpoints/RegistryTest.php b/tests/Endpoints/RegistryTest.php index cd388e0b..2b1d47a7 100644 --- a/tests/Endpoints/RegistryTest.php +++ b/tests/Endpoints/RegistryTest.php @@ -8,7 +8,7 @@ beforeEach(function() { $this->client = new GuzzleHttp\Client(); }); -test('test /api/registry', function () { +test('test GET /api/registry', function () { $response = $this->client->request('GET', 'https://test.flextype.org/api/registry', [ 'query' => [ 'id' => 'flextype.manifest.version', @@ -17,5 +17,5 @@ test('test /api/registry', function () { ]); $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']); + $this->assertTrue(version_compare(json_decode((string) $response->getBody(), true)['data']['value'], '0.0.0', '>=' ) >= 0); });