You are here

public function CommercePricelistTestCaseSimpleProduct::testCommercePricelistDeactivateZeroPriceProduct in Commerce Pricelist 7

Test that product with price zero are deactivated.

File

tests/commerce_pricelist.test, line 176
Functional tests for the commerce price list module.

Class

CommercePricelistTestCaseSimpleProduct
Test price list features for a product display that only has one product attached.

Code

public function testCommercePricelistDeactivateZeroPriceProduct() {

  // Log in as a normal user to test price list process.
  $this
    ->drupalLogin($this->store_customer);
  $this
    ->drupalGet('node/' . $this->product_node->nid);
  $this
    ->assertRaw(t('Product not available'), t('Product was correctly disabled'));
}