public function testList() { $mockQueries = array(); $decodedMockQueries = array(); for ($i = 0; $i < 10; $i++) { $mockQuery = $this->saveMockQuery(); $mockQueries[] = $mockQuery; $decodedMockQueries[] = HKVStorage::decodeValue($mockQuery); } $client = static::createClient(); $this->login($client, "root", "root"); $client->request('get', $this->listRoute); $response = $client->getResponse(); $query = HKVStorage::decodeValue($response->getContent()); self::assertNotNull($query, "List is null despite being filled by at least 10 style maps."); foreach ($decodedMockQueries as $k => $v) { self::assertNotNull($query[$v->getValue()->getId()], "At least one query was not saved."); } }