| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class BlockLinkField_ReadonlyTest extends SapphireTest |
||
| 11 | { |
||
| 12 | protected static $fixture_file = 'BlockLinkFieldTest.yml'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var BlockLinkField_Readonly |
||
| 16 | */ |
||
| 17 | protected $field; |
||
| 18 | |||
| 19 | protected function setUp() |
||
| 20 | { |
||
| 21 | parent::setUp(); |
||
| 22 | |||
| 23 | $this->field = (new BlockLinkField('Foo')) |
||
| 24 | ->setValue(json_encode([ |
||
| 25 | 'PageID' => $this->idFromFixture(SiteTree::class, 'a_page'), |
||
| 26 | 'Text' => 'Some text here', |
||
| 27 | 'Description' => 'Do not touch the monkey', |
||
| 28 | 'TargetBlank' => true, |
||
| 29 | ])) |
||
| 30 | ->performReadonlyTransformation(); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function testReadonlyFieldIsReturnedFromTransformation() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |