Commit e9641c3d authored by voleger's avatar voleger
Browse files

Issue #3097438: Update project tests o be compatible with Drupal 9

parent 816ca20f
<?php
namespace Drupal\queue_order\Tests\Kernel;
namespace Drupal\Tests\queue_order\Kernel;
/**
* Class DefinitionsWithModuleTest.
......@@ -14,7 +14,7 @@ class DefinitionsWithModuleTest extends DefinitionsWithoutModuleTest {
/**
* {@inheritdoc}
*/
public static $modules = ['queue_order_definition_fixtures', 'queue_order'];
protected static $modules = ['queue_order_definition_fixtures', 'queue_order'];
/**
* Test equality of Queue Worker definition order.
......@@ -25,6 +25,11 @@ class DefinitionsWithModuleTest extends DefinitionsWithoutModuleTest {
array_keys($this->QueueWorkerManager->getDefinitions()),
$this > t('Order is managed by the module')
);
$this->assertSame(
$this->orderedList,
array_keys($this->QueueWorkerManager->getDefinitions()),
$this > t('Order is managed by the module')
);
}
/**
......
<?php
namespace Drupal\queue_order\Tests\Kernel;
namespace Drupal\Tests\queue_order\Kernel;
use Drupal\KernelTests\KernelTestBase;
......@@ -16,7 +16,7 @@ class DefinitionsWithoutModuleTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = ['queue_order_definition_fixtures'];
protected static $modules = ['queue_order_definition_fixtures'];
/**
* Queue Worker Manager service.
......@@ -51,6 +51,11 @@ class DefinitionsWithoutModuleTest extends KernelTestBase {
array_keys($this->QueueWorkerManager->getDefinitions()),
$this > t('Order is managed by the core functionality')
);
$this->assertNotSame(
$this->orderedList,
array_keys($this->QueueWorkerManager->getDefinitions()),
$this > t('Order is managed by the core functionality')
);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment