public function testGet_basket() { $basket = self::$DI['app']['EM']->find('Phraseanet:Basket', 1); $request = new Request([], [], [], [], [], ['HTTP_Accept' => 'application/json']); $result = $this->object->get_basket($request, $basket); $this->assertEquals(200, $result->get_http_code()); $this->assertEquals('application/json', $result->get_content_type()); $this->assertTrue(is_array(json_decode($result->format(), true))); }