You are here

public function CartDependencyTest::testDidNotCrash in Commerce Core 8.2

Verifies the test ran.

File

modules/promotion/tests/src/Functional/CartDependencyTest.php, line 35

Class

CartDependencyTest
Tests that promotion installs without Commerce Cart.

Namespace

Drupal\Tests\commerce_promotion\Functional

Code

public function testDidNotCrash() {
  $edit = [];
  $edit['modules[commerce_promotion][enable]'] = TRUE;
  $this
    ->drupalGet('admin/modules');
  $this
    ->submitForm($edit, 'Install');
  $this
    ->assertText('Module Commerce Promotion has been enabled.');
}