Source of file CatalogCategoryTest.php
Size: 0,820 Bytes - Last Modified: 2021-12-24T06:46:25+00:00
/var/www/docs.ssmods.com/process/src/tests/CatalogCategoryTest.php
123456789101112131415161718192021222324252627282930313233343536 | <?php namespace Dynamic\ProductCatalog\Test; use Dynamic\ProductCatalog\Page\CatalogCategory; use SilverStripe\Dev\SapphireTest; use SilverStripe\Forms\FieldList; use SilverStripe\ORM\DataList; class CatalogCategoryTest extends SapphireTest { /** * @var string */ protected static $fixture_file = 'fixtures.yml'; /** * */ public function testGetCMSFields() { $object = $this->objFromFixture(CatalogCategory::class, 'default'); $fields = $object->getCMSFields(); $this->assertInstanceOf(FieldList::class, $fields); } /** * */ public function testGetProductList() { $object = $this->objFromFixture(CatalogCategory::class, 'default'); $this->assertInstanceOf(DataList::class, $object->getProductList()); } } |