From 6b6433e404fe777429c4eb2010cf70b7d6c0bdda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Burnichon?= Date: Wed, 30 Sep 2015 18:10:56 +0200 Subject: [PATCH] Change Api version to 2.0.0 --- lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php | 2 +- tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php b/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php index fb03b39f89..362da070e7 100644 --- a/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php +++ b/lib/Alchemy/Phrasea/ControllerProvider/Api/V1.php @@ -20,7 +20,7 @@ use Silex\ServiceProviderInterface; class V1 implements ControllerProviderInterface, ServiceProviderInterface { - const VERSION = '1.4.1'; + const VERSION = '2.0.0'; public static $extendedContentTypes = [ 'json' => ['application/vnd.phraseanet.record-extended+json'], diff --git a/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php b/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php index 8d0870dc16..c8b2c8980e 100644 --- a/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php +++ b/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiTestCase.php @@ -2288,7 +2288,7 @@ abstract class ApiTestCase extends \PhraseanetWebTestCase $this->assertArrayHasKey('response', $content); $this->assertTrue(is_array($content['meta']), 'Le bloc meta est un array'); $this->assertTrue(is_array($content['response']), 'Le bloc reponse est un array'); - $this->assertEquals('1.4.1', $content['meta']['api_version']); + $this->assertEquals('2.0.0', $content['meta']['api_version']); $this->assertNotNull($content['meta']['response_time']); $this->assertEquals('UTF-8', $content['meta']['charset']); }