You are here

public function CommerceCouponTest::testCommerceCouponTypeAccess in Commerce Coupon 7.2

File

./commerce_coupon.test, line 319
Commerce Coupon tests.

Class

CommerceCouponTest
Testing commerce coupon UI and functionality.

Code

public function testCommerceCouponTypeAccess() {

  // Login with store admin.
  $this
    ->drupalLogin($this->store_admin);
  $this
    ->drupalGet('admin/commerce/coupons/types/discount-coupon');
  $this
    ->assertResponse(200, 'The store admin has access to coupons of the discount-coupon type.');
  $this
    ->drupalPost(NULL, array(), t('Save configuration'));
  $this
    ->assertText(t('The configuration options have been saved.'));
}