public function InvoiceTypeTest::testDefault in Commerce Invoice 8.2
Tests whether the default invoice type was created.
File
- tests/src/ FunctionalJavascript/ InvoiceTypeTest.php, line 37 
Class
- InvoiceTypeTest
- Tests the invoice type UI.
Namespace
Drupal\Tests\commerce_invoice\FunctionalJavascriptCode
public function testDefault() {
  $invoice_type = InvoiceType::load('default');
  $this
    ->assertNotEmpty($invoice_type);
  $this
    ->drupalGet('admin/commerce/config/invoice-types');
  $rows = $this
    ->getSession()
    ->getPage()
    ->findAll('css', 'table tbody tr');
  $this
    ->assertGreaterThan(1, $rows);
}