2018-11-18 23:48:23 +01:00
|
|
|
<?php
|
2019-01-09 20:59:28 +01:00
|
|
|
|
2018-11-18 23:48:23 +01:00
|
|
|
namespace SilverStripe\Reports\Tests\ReportAdminTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2024-03-27 02:06:39 +01:00
|
|
|
use SilverStripe\ORM\ArrayList;
|
2018-11-18 23:48:23 +01:00
|
|
|
use SilverStripe\Reports\Report;
|
2024-03-27 02:06:39 +01:00
|
|
|
use SilverStripe\Security\Member;
|
2018-11-18 23:48:23 +01:00
|
|
|
|
|
|
|
class FakeReport extends Report implements TestOnly
|
|
|
|
{
|
|
|
|
public function title()
|
|
|
|
{
|
|
|
|
return 'Fake report';
|
|
|
|
}
|
2024-03-27 02:06:39 +01:00
|
|
|
|
|
|
|
public function sourceRecords($params = [], $sort = null, $limit = null)
|
|
|
|
{
|
|
|
|
$list = new ArrayList();
|
|
|
|
$list->setDataClass(Member::class);
|
|
|
|
return $list;
|
|
|
|
}
|
2018-11-18 23:48:23 +01:00
|
|
|
}
|