public function CommerceCartTestCaseSimpleProduct::testCommerceCartProductFormStructure in Commerce Core 7
Test if the product form has the correct structure.
File
- modules/
cart/ tests/ commerce_cart.test, line 80 - Functional tests for the commerce cart module.
Class
- CommerceCartTestCaseSimpleProduct
- Test cart features for a product display that only has one product attached.
Code
public function testCommerceCartProductFormStructure() {
// Go to cart url.
$this
->drupalGet('node/' . $this->product_node->nid);
$this
->assertField('edit-submit', t('Add to cart button exists'));
}