From 4aefa50087ca9a6f9804b5a54e509488634b4835 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sun, 16 Jul 2017 16:37:08 +1200 Subject: [PATCH] Remove unused test report stubs --- tests/ReportTest_FakeObject.php | 39 -------------------------- tests/ReportTest_FakeTest.php | 36 ------------------------ tests/ReportTest_FakeTest2.php | 35 ----------------------- tests/ReportTest_FakeTest_Abstract.php | 37 ------------------------ 4 files changed, 147 deletions(-) delete mode 100644 tests/ReportTest_FakeObject.php delete mode 100644 tests/ReportTest_FakeTest.php delete mode 100644 tests/ReportTest_FakeTest2.php delete mode 100644 tests/ReportTest_FakeTest_Abstract.php diff --git a/tests/ReportTest_FakeObject.php b/tests/ReportTest_FakeObject.php deleted file mode 100644 index 93b134df..00000000 --- a/tests/ReportTest_FakeObject.php +++ /dev/null @@ -1,39 +0,0 @@ - 'Varchar' - ); - - /** - * @return String Absolute URL to the end-user view for this record. - * Example: http://mysite.com/my-record - */ - public function Link() - { - return Controller::join_links('dummy-link', $this->ID); - } - - public function CMSEditLink() - { - return Controller::join_links('dummy-edit-link', $this->ID); - } - - public function PreviewLink($action = null) - { - return false; - } - - public function getMimeType() - { - return 'text/html'; - } -} diff --git a/tests/ReportTest_FakeTest.php b/tests/ReportTest_FakeTest.php deleted file mode 100644 index 2739053b..00000000 --- a/tests/ReportTest_FakeTest.php +++ /dev/null @@ -1,36 +0,0 @@ - array( - "title" => "Page Title", - "link" => true, - ) - ); - } - public function sourceRecords($params, $sort, $limit) - { - return new ArrayList(); - } - - public function sort() - { - return 100; - } -} diff --git a/tests/ReportTest_FakeTest2.php b/tests/ReportTest_FakeTest2.php deleted file mode 100644 index 4c38b962..00000000 --- a/tests/ReportTest_FakeTest2.php +++ /dev/null @@ -1,35 +0,0 @@ - array( - "title" => "Page Title 2" - ) - ); - } - public function sourceRecords($params, $sort, $limit) - { - return new ArrayList(); - } - - public function sort() - { - return 98; - } -} diff --git a/tests/ReportTest_FakeTest_Abstract.php b/tests/ReportTest_FakeTest_Abstract.php deleted file mode 100644 index 4e144efe..00000000 --- a/tests/ReportTest_FakeTest_Abstract.php +++ /dev/null @@ -1,37 +0,0 @@ - array( - "title" => "Page Title Abstract" - ) - ); - } - public function sourceRecords($params, $sort, $limit) - { - return new ArrayList(); - } - - public function sort() - { - return 5; - } -}