Move FarmBrowserTestBase to a farm_test module.
This commit is contained in:
parent
91c615c6e1
commit
380796b4c8
|
@ -93,7 +93,7 @@ function farm_install_modules(array &$install_state) {
|
|||
|
||||
// If this is running in the context of a functional test, do not install any
|
||||
// additional modules. This is a temporary hack.
|
||||
// @see Drupal\Tests\farm\Functional\FarmBrowserTestBase::setUp()
|
||||
// @see Drupal\Tests\farm_test\Functional\FarmBrowserTestBase::setUp()
|
||||
// @todo https://www.drupal.org/project/farm/issues/3183739
|
||||
if (!empty($GLOBALS['farm_test'])) {
|
||||
$modules = [];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace Drupal\Tests\farm_equipment\Functional;
|
||||
|
||||
use Drupal\Core\StringTranslation\StringTranslationTrait;
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the equipment used field.
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Drupal\Tests\farm_api\Functional;
|
|||
|
||||
use Drupal\consumers\Entity\Consumer;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\jsonapi\Functional\JsonApiRequestTestTrait;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Drupal\Tests\farm_api\Functional;
|
|||
|
||||
use Drupal\Component\Serialization\Json;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\jsonapi\Functional\JsonApiRequestTestTrait;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Drupal\Tests\farm_api\Functional;
|
||||
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests hook_install functionality of farm_api module.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Drupal\Tests\asset\Functional;
|
||||
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the asset CRUD.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Drupal\Tests\farm_entity\Functional;
|
||||
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests that bundle fields are created during a postponed install.
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Drupal\Tests\farm_inventory\Functional;
|
|||
use Drupal\Component\Serialization\Json;
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\jsonapi\Functional\JsonApiRequestTestTrait;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ use Drupal\Component\Render\FormattableMarkup;
|
|||
use Drupal\Core\Session\AccountInterface;
|
||||
use Drupal\Core\StringTranslation\StringTranslationTrait;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Drupal\Tests\plan\Functional;
|
||||
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the plan CRUD.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
name: farmOS Test
|
||||
description: Provides common automated testing code for farmOS.
|
||||
type: module
|
||||
package: Testing
|
||||
core_version_requirement: ^9
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\farm\Functional;
|
||||
namespace Drupal\Tests\farm_test\Functional;
|
||||
|
||||
use Drupal\Tests\BrowserTestBase;
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Drupal\Tests\farm_ui_dashboard\Functional;
|
||||
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the farmOS dashboard functionality.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Drupal\Tests\farm_ui_theme\Functional;
|
||||
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the "Powered by farmOS" block.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace Drupal\Tests\farm_ui_views\Functional;
|
||||
|
||||
use Drupal\log\Entity\Log;
|
||||
use Drupal\Tests\farm\Functional\FarmBrowserTestBase;
|
||||
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the farm_ui_views dashboard panes.
|
||||
|
|
Loading…
Reference in New Issue