commerce_xero-8.x-1.x-dev/tests/src/FunctionalJavascript/InstallTest.php
tests/src/FunctionalJavascript/InstallTest.php
<?php
namespace Drupal\Tests\commerce_xero\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
/**
* Tests installing the Drupal Commerce Xero module on a fresh Drupal site.
*
* @group commerce_xero
*/
class InstallTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'user',
'commerce_order',
'commerce_price',
'commerce_xero',
'serialization',
'options',
'views',
'xero',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests installing the Drupal Commerce Xero module on a fresh Drupal site.
*/
public function testInstall() {
$module_list = $this->container->get('module_handler')->getModuleList();
$this->assertArrayHasKey('commerce_xero', $module_list);
}
}
