Move FarmBrowserTestBase to a farm_test module.

This commit is contained in:
Michael Stenta 2021-06-17 09:42:43 -04:00
parent 91c615c6e1
commit 380796b4c8
15 changed files with 19 additions and 14 deletions

View File

@ -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 = [];

View File

@ -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.

View File

@ -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;

View File

@ -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;

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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;

View File

@ -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;
/**

View File

@ -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.

View File

@ -0,0 +1,5 @@
name: farmOS Test
description: Provides common automated testing code for farmOS.
type: module
package: Testing
core_version_requirement: ^9

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Tests\farm\Functional;
namespace Drupal\Tests\farm_test\Functional;
use Drupal\Tests\BrowserTestBase;

View File

@ -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.

View File

@ -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.

View File

@ -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.