Merge pull request #1518 from bburnichon/api-version-2.0.0-PHRAS-747

Change Api version to 2.0.0

PHRAS-747 #time 15mn
This commit is contained in:
Benoît Burnichon
2015-09-30 18:22:38 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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'],

View File

@@ -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']);
}