public function CommerceDiscountUITest::testCommerceDiscountImportUI in Commerce Discount 7
Test the importing of commerce discounts.
File
- tests/
commerce_discount_ui.test, line 27 - Commerce Discounts UI tests.
Class
- CommerceDiscountUITest
- Testing commerce discounts UI.
Code
public function testCommerceDiscountImportUI() {
// Login store admin.
$this
->drupalLogin($this->store_admin);
// Access to the admin discount creation page.
$this
->drupalGet('admin/commerce/discounts/import');
$this
->assertResponse(200, 'Store admin is allowed in the discounts import page');
}