$env = Environment::mock([
'REQUEST_METHOD' => 'GET',
]);
$env = Environment::mock([
'REQUEST_METHOD' => 'GET',
]);
$this->assertEquals('cartoon', $data[1]['name']);
$this->assertEquals(3, $data[1]['occurrences']);
// Case insensitive
$this->assertEquals('cartoon', $data[1]['name']);
$this->assertEquals(3, $data[1]['occurrences']);
// Case insensitive
- $this->assertEquals(self::NB_FIELDS_TAG, count($data[2]));
- $this->assertEquals('sTuff', $data[2]['name']);
- $this->assertEquals(2, $data[2]['occurrences']);
+ $this->assertEquals(self::NB_FIELDS_TAG, count($data[5]));
+ $this->assertEquals('sTuff', $data[5]['name']);
+ $this->assertEquals(2, $data[5]['occurrences']);
$env = Environment::mock([
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'limit=all'
$env = Environment::mock([
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'limit=all'
$env = Environment::mock([
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'visibility=private'
$env = Environment::mock([
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'visibility=private'
$data = json_decode((string) $response->getBody(), true);
$this->assertEquals(count($tags), count($data));
$this->assertEquals(self::NB_FIELDS_TAG, count($data[0]));
$data = json_decode((string) $response->getBody(), true);
$this->assertEquals(count($tags), count($data));
$this->assertEquals(self::NB_FIELDS_TAG, count($data[0]));
$env = Environment::mock(
[
'REQUEST_METHOD' => 'GET',
$env = Environment::mock(
[
'REQUEST_METHOD' => 'GET',