silverstripe-reports/tests/ReportAdminTest/FakeReport.php

24 lines
508 B
PHP
Raw Normal View History

<?php
2019-01-09 20:59:28 +01:00
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;
}
}