lekoala /
silverstripe-blocks
| 1 | <?php |
||
| 2 | |||
| 3 | namespace LeKoala\DeferBackend\Test; |
||
| 4 | |||
| 5 | use LeKoala\Blocks\BaseBlock; |
||
| 6 | use LeKoala\Blocks\Block; |
||
| 7 | use SilverStripe\Dev\SapphireTest; |
||
| 8 | |||
| 9 | class BlocksTest extends SapphireTest |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Defines the fixture file to use for this test class |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected static $fixture_file = 'BlocksTest.yml'; |
||
| 16 | |||
| 17 | public function getDefaultBlock() |
||
| 18 | { |
||
| 19 | return $this->objFromFixture(Block::class, 'default'); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testBlocks() |
||
| 23 | { |
||
| 24 | $block = $this->getDefaultBlock(); |
||
| 25 | $baseBlock = new BaseBlock($block); |
||
|
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
| 26 | } |
||
| 27 | } |
||
| 28 |