public function test_change_sequence_for_topic() { $this->mySetup(__DIR__ . "/different_sequence_topic_table.xml"); $controller = new TopicController([], Response::REQUEST_METHOD_GET, array()); $response = $controller->getResponse(); $json = json_decode($response->getBody(), true); $sequence_element_1 = $json['topics'][0]['sequence']; $sequence_element_2 = $json['topics'][1]['sequence']; self::assertEquals(1, $sequence_element_2, 'Topic 2, first element'); self::assertEquals(2, $sequence_element_1, 'Topic 1, second element'); }