| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ProductFileCollectionDataExtensionTest extends SapphireTest |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected static $fixture_file = '../fixtures.yml'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * |
||
| 20 | */ |
||
| 21 | public function testUpdateCollectionObject() |
||
| 22 | { |
||
| 23 | $object = $this->objFromFixture(ProductFileCollection::class, 'default'); |
||
| 24 | $controller = ProductFileCollectionController::create($object); |
||
| 25 | $this->assertEquals($controller->getCollectionObject(), Brochure::class); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | */ |
||
| 31 | public function testUpdateCollectionForm() |
||
| 32 | { |
||
| 33 | $object = $this->objFromFixture(ProductFileCollection::class, 'default'); |
||
| 34 | $controller = ProductFileCollectionController::create($object); |
||
| 35 | $form = $controller->CollectionSearchForm(); |
||
| 36 | $this->assertNotNull($form->Fields()->dataFieldByName('CategoryID')); |
||
| 37 | $this->assertNull($form->Fields()->dataFieldByName('Title')); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * |
||
| 42 | */ |
||
| 43 | public function testUpdateCollectionItems() |
||
| 44 | { |
||
| 45 | $this->markTestIncomplete( |
||
| 46 | 'This test has not been implemented yet.' |
||
| 47 | ); |
||
| 50 |