3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/tests/src/Functional/FarmBrowserTestBase.php
Michael Stenta 11c2f324e1 Issue #3183739: Functional tests are installing all default farmOS modules
This is a temporary first step, but not a proper solution to the issue.
2020-11-20 11:35:13 -05:00

32 lines
714 B
PHP

<?php
namespace Drupal\Tests\farm\Functional;
use Drupal\Tests\BrowserTestBase;
/**
* Provides a base class for farmOS functional tests.
*/
class FarmBrowserTestBase extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $profile = 'farm';
/**
* {@inheritdoc}
*/
protected function setUp(): void {
// Set a global farm_test variable and then delegate to the parent setUp().
// This is a temporary hack to prevent optional default farmOS modules from
// being installed via the profile's hook_install_tasks().
// @see farm_install_modules()
// @todo https://www.drupal.org/project/farm/issues/3183739
$GLOBALS['farm_test'] = TRUE;
parent::setUp();
}
}