public function testFieldsWithArray()
{
$query = new Query(array('model' => 'lithium\\tests\\mocks\\data\\model\\MockQueryPost', 'type' => 'read', 'with' => 'MockQueryComment'));
$query->fields(array('MockQueryPost', 'MockQueryPost' => array('id')));
$result = $query->fields();
$expected = array('MockQueryPost', 'MockQueryPost.id');
$this->assertEqual($expected, $result);
$query->fields(false);
$query->fields(array('MockQueryPost' => array('id'), 'title', 'MockQueryComment' => array('comment', 'title'), 'MockQueryComment'));
$result = $query->fields();
$expected = array('MockQueryPost.id', 'title', 'MockQueryComment.comment', 'MockQueryComment.title', 'MockQueryComment');
$this->assertEqual($expected, $result);
}