mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
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:
@@ -20,7 +20,7 @@ use Silex\ServiceProviderInterface;
|
|||||||
|
|
||||||
class V1 implements ControllerProviderInterface, ServiceProviderInterface
|
class V1 implements ControllerProviderInterface, ServiceProviderInterface
|
||||||
{
|
{
|
||||||
const VERSION = '1.4.1';
|
const VERSION = '2.0.0';
|
||||||
|
|
||||||
public static $extendedContentTypes = [
|
public static $extendedContentTypes = [
|
||||||
'json' => ['application/vnd.phraseanet.record-extended+json'],
|
'json' => ['application/vnd.phraseanet.record-extended+json'],
|
||||||
|
|||||||
@@ -2288,7 +2288,7 @@ abstract class ApiTestCase extends \PhraseanetWebTestCase
|
|||||||
$this->assertArrayHasKey('response', $content);
|
$this->assertArrayHasKey('response', $content);
|
||||||
$this->assertTrue(is_array($content['meta']), 'Le bloc meta est un array');
|
$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->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->assertNotNull($content['meta']['response_time']);
|
||||||
$this->assertEquals('UTF-8', $content['meta']['charset']);
|
$this->assertEquals('UTF-8', $content['meta']['charset']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user