SilverShop\Tests\Page\ProductCategoryTest
Synopsis
class ProductCategoryTest
extends FunctionalTest
{
- // members
- public static object $fixture_file = __DIR__ . '/../Fixtures/shop.yml;
- public static boolean $disable_theme = true;
- protected ProductCategory $products;
- protected ProductCategory $clothing;
- protected ProductCategory $electronics;
- protected Product $socks;
- protected Product $tshirt;
- protected Product $hdtv;
- protected Product $beachball;
- protected Product $mp3player;
- // methods
- public void setUp()
- public void testCanViewProductCategoryPage()
- public void testGetAllProducts()
- public void testSecondaryMembership()
- public void testZeroPrice()
- public void testZeroPriceWithVariations()
- public void testFiltering()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $beachball — SilverShop\Page\Product
- $clothing — SilverShop\Page\ProductCategory
- $electronics — SilverShop\Page\ProductCategory
- $hdtv — SilverShop\Page\Product
- $mp3player — SilverShop\Page\Product
- $products — SilverShop\Page\ProductCategory
- $socks — SilverShop\Page\Product
- $tshirt — SilverShop\Page\Product
public
- $disable_theme
- $fixture_file