Skip to content
Snippets Groups Projects

fix php-unit

Merged Jean-Philippe Déis Nuel requested to merge s1933/fix-phpunit into 1.x
1 file
+ 13
9
Compare changes
  • Side-by-side
  • Inline
@@ -4,14 +4,17 @@ namespace Drupal\Tests\domain_unique_path_alias\Functional;
use Drupal\domain_access\DomainAccessManagerInterface;
use Drupal\domain_source\DomainSourceElementManagerInterface;
use Drupal\Tests\domain\Functional\DomainTestBase;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\domain\Traits\DomainTestTrait;
/**
* Tests path alias on different domains.
*
* @group domain_unique_path_alias
*/
class DomainUniquePathAliasTest extends DomainTestBase {
class DomainUniquePathAliasTest extends BrowserTestBase {
use DomainTestTrait;
/**
* {@inheritdoc}
@@ -39,11 +42,12 @@ class DomainUniquePathAliasTest extends DomainTestBase {
parent::setUp();
// Create 2 domains.
DomainTestBase::domainCreateTestDomains(2, 'example.com', [
DomainTestTrait::domainCreateTestDomains(2, 'example.com', [
'domain',
'domain1',
]);
// Load domain records.
$domains = \Drupal::entityTypeManager()->getStorage('domain')->loadMultiple();
// Create an article on example_com domain.
@@ -53,10 +57,10 @@ class DomainUniquePathAliasTest extends DomainTestBase {
'alias' => '/contact',
],
DomainAccessManagerInterface::DOMAIN_ACCESS_FIELD => [
$domains['example_com']->id()
$domains['example_com']->id(),
],
DomainSourceElementManagerInterface::DOMAIN_SOURCE_FIELD => [
$domains['example_com']->id()
$domains['example_com']->id(),
],
]);
@@ -67,10 +71,10 @@ class DomainUniquePathAliasTest extends DomainTestBase {
'alias' => '/contact-bis',
],
DomainAccessManagerInterface::DOMAIN_ACCESS_FIELD => [
$domains['example_com']->id()
$domains['example_com']->id(),
],
DomainSourceElementManagerInterface::DOMAIN_SOURCE_FIELD => [
$domains['example_com']->id()
$domains['example_com']->id(),
],
]);
@@ -81,10 +85,10 @@ class DomainUniquePathAliasTest extends DomainTestBase {
'alias' => '/contact',
],
DomainAccessManagerInterface::DOMAIN_ACCESS_FIELD => [
$domains['domain1_example_com']->id()
$domains['domain1_example_com']->id(),
],
DomainSourceElementManagerInterface::DOMAIN_SOURCE_FIELD => [
$domains['domain1_example_com']->id()
$domains['domain1_example_com']->id(),
],
]);
}
Loading