You are here

public function CommerceDiscountConditionsTest::setUp in Commerce Discount 7

Set up our tests by adding some additional products.

Overrides CommerceDiscountTestBase::setUp

File

tests/commerce_discount_conditions.test, line 29
Commerce Discounts inline conditions tests.

Class

CommerceDiscountConditionsTest
Test inline conditions.

Code

public function setUp() {
  parent::setUp();

  // We need a bunch of products.
  $this->products['b'] = $this
    ->createDummyProduct('PROD-B', 'Product B', 1000);
  $this->products['c'] = $this
    ->createDummyProduct('PROD-C', 'Product C', 1000);
  $this->products['d'] = $this
    ->createDummyProduct('PROD-D', 'Product D', 1000);
  $this->products['e'] = $this
    ->createDummyProduct('PROD-E', 'Product E', 1000);
  $this->products['f'] = $this
    ->createDummyProduct('PROD-F', 'Product F', 1000);
}