Commit 2fec0ead authored by Marc Galang's avatar Marc Galang Committed by Bojan Živanović
Browse files

Issue #2747905 by msgph: Port the ConfigUpdaterTest to KernelTest (#415)

parent 63c1a71e
Loading
Loading
Loading
Loading
+22 −4
Changes for tests/src/Kernel/ConfigUpdaterTest.php: 22 added lines, 4 removed lines.
Original line number Diff line number Diff line
<?php

namespace Drupal\commerce\Tests;
namespace Drupal\Tests\commerce\Kernel;

use Drupal\simpletest\WebTestBase;
use Drupal\KernelTests\KernelTestBase;

/**
 * Tests the ConfigUpdater class.
 *
 * @group commerce
 */
class ConfigUpdaterTest extends WebTestBase {
class ConfigUpdaterTest extends KernelTestBase {

  public static $modules = ['commerce_update_test'];
  /**
   * Enable modules.
   *
   * @var array
   */
  public static $modules = [
    'system', 'field', 'options', 'user', 'entity', 'views', 'address',
    'profile', 'state_machine', 'inline_entity_form', 'commerce',
    'commerce_price', 'commerce_store', 'commerce_product', 'commerce_order',
    'commerce_update_test',
  ];

  /**
   * The config updater service.
@@ -26,6 +36,14 @@ class ConfigUpdaterTest extends WebTestBase {
  protected function setUp() {
    parent::setUp();

    $this->installSchema('system', 'router');
    $this->installEntitySchema('user');
    $this->installEntitySchema('profile');
    $this->installEntitySchema('commerce_store');
    $this->installEntitySchema('commerce_order');
    $this->installConfig('commerce_order');
    $this->installConfig('commerce_update_test');

    $this->configUpdater = \Drupal::service('commerce.config_updater');
  }