2018-11-19 11:48:23 +13:00
|
|
|
<?php
|
2019-01-09 20:59:28 +01:00
|
|
|
|
2018-11-19 11:48:23 +13:00
|
|
|
namespace SilverStripe\Reports\Tests\ReportAdminTest;
|
|
|
|
|
|
|
|
use SilverStripe\Control\Controller;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\Reports\Report;
|
|
|
|
use SilverStripe\Reports\ReportAdmin;
|
2024-09-23 14:35:07 +12:00
|
|
|
use SilverStripe\Model\ArrayData;
|
2018-11-19 11:48:23 +13:00
|
|
|
|
|
|
|
class FakeReport2 extends Report implements TestOnly
|
|
|
|
{
|
|
|
|
public function title()
|
|
|
|
{
|
|
|
|
return 'Fake report two';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBreadcrumbs()
|
|
|
|
{
|
|
|
|
return [ArrayData::create([
|
|
|
|
'Title' => 'Fake report title',
|
|
|
|
'Link' => FakeReport::singleton()->getLink()
|
|
|
|
])];
|
|
|
|
}
|
|
|
|
}
|