mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
24 lines
508 B
PHP
24 lines
508 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Reports\Tests\ReportAdminTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\ArrayList;
|
|
use SilverStripe\Reports\Report;
|
|
use SilverStripe\Security\Member;
|
|
|
|
class FakeReport extends Report implements TestOnly
|
|
{
|
|
public function title()
|
|
{
|
|
return 'Fake report';
|
|
}
|
|
|
|
public function sourceRecords($params = [], $sort = null, $limit = null)
|
|
{
|
|
$list = new ArrayList();
|
|
$list->setDataClass(Member::class);
|
|
return $list;
|
|
}
|
|
}
|