| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class FoxyStripeInventoryManagerTest extends SapphireTest |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected static $fixture_file = array( |
||
| 17 | '../fixtures.yml', |
||
| 18 | ); |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected static $extra_dataobjects = [ |
||
| 24 | TestProduct::class, |
||
| 25 | TestOption::class, |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | */ |
||
| 31 | public function testUpdateCMSFields() |
||
| 32 | { |
||
| 33 | $object = $this->objFromFixture(TestProduct::class, 'one'); |
||
| 34 | $fields = $object->getCMSFields(); |
||
| 35 | $this->assertInstanceOf(FieldList::class, $fields); |
||
| 36 | $this->assertNotNull($fields->dataFieldByName('ControlInventory')); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * |
||
| 41 | */ |
||
| 42 | public function testFoxyStripePurchaseForm() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |