public function CommerceBaseTesterTestCase::testTestCreateDummyProductType in Commerce Core 7
Make a test product type.
File
- tests/
commerce_base.test, line 821 - Defines abstract base test class for the Commerce module tests.
Class
- CommerceBaseTesterTestCase
- Test class to test the CommerceBaseTestCase functions. All testTestFoo functions have "testTest" in the name to indicate that they are verifying that a test is working. Somewhat "meta" to do this, but it eases test development.
Code
public function testTestCreateDummyProductType() {
$product_type = $this
->createDummyProductType();
$store_admin = $this
->createStoreAdmin();
$this
->drupalLogin($store_admin);
$this
->drupalGet('admin/commerce/products/types');
$this
->assertText($product_type['name'], t('Dummy product type name found on admin/commerce/products/types'));
}