diff --git a/tests/SSReportTest.php b/tests/SSReportTest.php new file mode 100644 index 00000000..2f637e44 --- /dev/null +++ b/tests/SSReportTest.php @@ -0,0 +1,27 @@ +assertTrue($report->sourceQuery(array())->canSortBy('Title ASC')); + $this->assertTrue($report->sourceQuery(array())->canSortBy('Title DESC')); + $this->assertTrue($report->sourceQuery(array())->canSortBy('Title')); + } +} + +class SSReportTest_FakeTest extends SSReport implements TestOnly { + function title() { + return 'Report title'; + } + function columns() { + return array( + "Title" => array( + "title" => "Page Title" + ) + ); + } + function sourceRecords($params, $sort, $limit) { + return new DataObjectSet(); + } +} \ No newline at end of file