2017-10-13 01:31:11 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace DNADesign\ElementalList\Tests;
|
|
|
|
|
|
|
|
use DNADesign\ElementalList\Model\ElementList;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
|
|
|
|
|
|
class ElementListTest extends SapphireTest
|
|
|
|
{
|
2023-02-28 22:08:57 +01:00
|
|
|
public function testGetRelations(): void
|
2017-10-13 01:31:11 +02:00
|
|
|
{
|
|
|
|
$list = ElementList::create();
|
|
|
|
|
|
|
|
$this->assertEquals(['Elements'], $list->getElementalRelations());
|
|
|
|
}
|
|
|
|
|
2023-02-28 22:08:57 +01:00
|
|
|
public function testGetCmsFields(): void
|
2017-10-13 01:31:11 +02:00
|
|
|
{
|
2017-10-18 10:32:51 +02:00
|
|
|
// todo
|
2017-10-13 01:31:11 +02:00
|
|
|
}
|
|
|
|
|
2023-02-28 22:08:57 +01:00
|
|
|
public function testForTemplate(): void
|
2017-10-13 01:31:11 +02:00
|
|
|
{
|
2017-10-18 10:32:51 +02:00
|
|
|
// todo
|
2017-10-13 01:31:11 +02:00
|
|
|
}
|
|
|
|
}
|