public function CommerceBaseTesterTestCase::testTestStoreAdmin in Commerce Core 7
Test that Store Admin role actually gets set up.
File
- tests/
commerce_base.test, line 810 - 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 testTestStoreAdmin() {
$store_admin = $this
->createStoreAdmin();
$this
->drupalLogin($this->site_admin);
$this
->drupalGet('admin/people/permissions');
// This will break if it isn't the second role created
$this
->assertFieldChecked('edit-4-configure-store');
}