// Now run the query and groupby the result.
$this->
executeView($view);
$expected =
[];
$expected['Job: Singer'
] =
[];
$expected['Job: Singer'
]['group'
] = 'Job: Singer';
$expected['Job: Singer'
]['level'
] = 0;
$expected['Job: Singer'
]['rows'
]['Age: 25'
] =
[];
$expected['Job: Singer'
]['rows'
]['Age: 25'
]['group'
] = 'Age: 25';
$expected['Job: Singer'
]['rows'
]['Age: 25'
]['level'
] = 1;
$expected['Job: Singer'
]['rows'
]['Age: 25'
]['rows'
][0
] =
new ResultRow(['index' => 0
]);
$expected['Job: Singer'
]['rows'
]['Age: 25'
]['rows'
][0
]->views_test_data_name = 'John';
$expected['Job: Singer'
]['rows'
]['Age: 25'
]['rows'
][0
]->views_test_data_job = 'Singer';
$expected['Job: Singer'
]['rows'
]['Age: 25'
]['rows'
][0
]->views_test_data_age = '25';
$expected['Job: Singer'
]['rows'
]['Age: 25'
]['rows'
][0
]->views_test_data_id = '1';
$expected['Job: Singer'
]['rows'
]['Age: 27'
] =
[];
$expected['Job: Singer'
]['rows'
]['Age: 27'
]['group'
] = 'Age: 27';
$expected['Job: Singer'
]['rows'
]['Age: 27'
]['level'
] = 1;
$expected['Job: Singer'
]['rows'
]['Age: 27'
]['rows'
][1
] =
new ResultRow(['index' => 1
]);
$expected['Job: Singer'
]['rows'
]['Age: 27'
]['rows'
][1
]->views_test_data_name = 'George';
$expected['Job: Singer'
]['rows'
]['Age: 27'
]['rows'
][1
]->views_test_data_job = 'Singer';
$expected['Job: Singer'
]['rows'
]['Age: 27'
]['rows'
][1
]->views_test_data_age = '27';