You are here

public function OrderTypeTest::testDefault in Commerce Core 8.2

Tests whether the default order type was created.

File

modules/order/tests/src/Functional/OrderTypeTest.php, line 17

Class

OrderTypeTest
Tests the order type UI.

Namespace

Drupal\Tests\commerce_order\Functional

Code

public function testDefault() {
  $order_type = OrderType::load('default');
  $this
    ->assertNotEmpty($order_type);
  $this
    ->drupalGet('admin/commerce/config/order-types');
  $rows = $this
    ->getSession()
    ->getPage()
    ->findAll('css', 'table tbody tr');
  $this
    ->assertCount(1, $rows);
}