public function StoreTypeTest::testDefault in Commerce Core 8.2
Tests whether the default store type was created.
File
- modules/
store/ tests/ src/ Functional/ StoreTypeTest.php, line 18
Class
- StoreTypeTest
- Tests the store type UI.
Namespace
Drupal\Tests\commerce_store\FunctionalCode
public function testDefault() {
$store_type = StoreType::load('online');
$this
->assertNotEmpty($store_type);
$this
->drupalGet('admin/commerce/config/store-types');
$rows = $this
->getSession()
->getPage()
->findAll('css', 'table tbody tr');
$this
->assertCount(1, $rows);
}