SilverShop\Tests\Model\Product\ProductOrderItemTest
Synopsis
class ProductOrderItemTest
extends FunctionalTest
{
- // members
- public static object $fixture_file = __DIR__ . '/../../Fixtures/shop.yml;
- public static boolean $disable_theme = true;
- public static array $orig = ;
- protected Product $mp3player;
- protected Product $socks;
- protected Product $beachball;
- protected Product $hdtv;
- // methods
- public void setUp()
- public void testEmptyItem()
- public void testProductVersionUpdate()
- public void testProductVersionDoesNotExist()
- public void testLinks()
- public void testCorruptedOrderItemLinks()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $beachball — SilverShop\Page\Product
- $hdtv — SilverShop\Page\Product
- $mp3player — SilverShop\Page\Product
- $socks — SilverShop\Page\Product
public
- $disable_theme
- $fixture_file
- $orig
Methods
public
- setUp() — Create and publish some products.
- testCorruptedOrderItemLinks() — Coverage for a bug where there's an error generating the link when ProductID = 0
- testEmptyItem()
- testLinks() — Check the links are accurate
- testProductVersionDoesNotExist() — Tries to create an order item with a non-existent version.
- testProductVersionUpdate() — Test product updates. These may be caused by an admin, causing everyone's cart to update.