SilverShop\Tests\Page\ProductTest
Test {@link Product}
Synopsis
class ProductTest
extends FunctionalTest
{
- // members
- protected static object $fixture_file = __DIR__ . '/../Fixtures/shop.yml;
- protected static boolean $disable_theme = true;
- protected static boolean $use_draft_site = true;
- protected Product $mp3player;
- protected Product $socks;
- protected Product $beachball;
- protected Product $tshirt;
- protected Product $pdfbrochure;
- // methods
- public void setUp()
- public void testCMSFields()
- public void testCanPurchase()
- public void testSellingPrice()
- public void testCreateItem()
- public void testItem()
- public void testDiscountRoundingError()
- public void testCanViewProductPage()
- public void testCategories()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $beachball — SilverShop\Page\Product
- $disable_theme
- $fixture_file
- $mp3player — SilverShop\Page\Product
- $pdfbrochure — SilverShop\Page\Product
- $socks — SilverShop\Page\Product
- $tshirt — SilverShop\Page\Product
- $use_draft_site