1<?php
2
3require_once __DIR__ . '/TestBase.php';
4
5/**
6 * Test cases for the Turba_Driver:: class
7 *
8 * @author  Jason M. Felice <jason.m.felice@gmail.com>
9 * @package Turba
10 * @subpackage UnitTests
11 */
12class Turba_ToDo_DriverTest extends Turba_TestBase {
13
14    function setUp()
15    {
16        $this->markTestIncomplete('Convert to use Horde_Test.');
17        parent::setUp();
18        $this->setUpDatabase();
19    }
20
21    function test_search_results_should_be_sorted_according_to_supplied_sort_order()
22    {
23        $this->assertSortsList(array($this, 'doSearch'));
24    }
25
26    function doSearch($order)
27    {
28        $driver = $this->getDriver();
29        $this->fakeAuth();
30        return $driver->search(array('__type' => 'Object'), $order, 'AND');
31    }
32
33}
34