SilverShop\Tests\Model\Variation\VariationVersionTest
Test product variation capabilities.
Synopsis
class VariationVersionTest
extends SapphireTest
{
- // members
- public static string $fixture_file = '../../Fixtures/variations.yml';
- public static boolean $disable_theme = true;
- protected static boolean $use_draft_site = true;
- protected Product $mp3player;
- protected Product $ball;
- protected Variation $redlarge;
- // methods
- public void setUp()
- public void testVariationsPersistOnUnpublish()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $ball — SilverShop\Page\Product
- $mp3player — SilverShop\Page\Product
- $redlarge — SilverShop\Model\Variation\Variation
- $use_draft_site
public
- $disable_theme
- $fixture_file