Commit 43c1c62e authored by quietone's avatar quietone
Browse files

Issue #3253893 by DamienMcKenna, quietone: Update codebase to be fully...

Issue #3253893 by DamienMcKenna, quietone: Update codebase to be fully compatible with Drupal core 9.3.x
parent 062aa8fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: Commerce Migrate
type: module
description: Provides various Commerce-specific Migrate handlers.
core_version_requirement: ^9.1
core_version_requirement: ^9.3
package: Commerce (contrib)
dependencies:
  - drupal:migrate
+2 −2
Original line number Diff line number Diff line
@@ -196,13 +196,13 @@ class MigrateUpgradeCommerce1Test extends MigrateUpgradeTestBase {
      'search_page' => 2,
      'shortcut' => 2,
      'shortcut_set' => 1,
      'action' => 27,
      'action' => 29,
      'menu' => 10,
      'taxonomy_term' => 33,
      'taxonomy_vocabulary' => 12,
      'tour' => 2,
      'user' => 3,
      'user_role' => 3,
      'user_role' => 4,
      'menu_link_content' => 0,
      'view' => 27,
      'base_field_override' => 1,
+25 −17
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ class CommerceAttributeHandlerSettingTest extends MigrateProcessTestCase {
   *
   * @dataProvider providerTestException
   */
  public function testException($src = NULL) {
  public function testException($src) {
    $this->row
      ->method('getSourceProperty')
      ->will($this->onConsecutiveCalls($src[0], $src[1], $src[2], $src[3]));
@@ -91,33 +91,41 @@ class CommerceAttributeHandlerSettingTest extends MigrateProcessTestCase {

    $tests = [
      // Not a commerce product entity type.
      [
        [
          'node',
          'taxonomy_term_reference',
          ['type' => 'options_select'],
          [],
        ],
      ],
      // Not a taxonomy term reference type.
      [
        [
          'commerce_product',
          'file',
          ['type' => 'options_select'],
          [],
        ],
      ],
      // Not an options select widget type.
      [
        [
          'commerce_product',
          'taxonomy_term_reference',
          ['type' => 'text'],
          [],
        ],
      ],
      // Not a taxonomy term reference type.
      [
        [
          NULL,
          NULL,
          NULL,
          NULL,
        ],
      ],
    ];

    return $tests;
+2 −2
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ class MigrateUpgradeUbercart6Test extends MigrateUpgradeExecuteTestBase {
   */
  protected function getEntityCounts() {
    return [
      'action' => 31,
      'action' => 33,
      'base_field_override' => 6,
      'block' => 23,
      'block_content' => 1,
@@ -153,7 +153,7 @@ class MigrateUpgradeUbercart6Test extends MigrateUpgradeExecuteTestBase {
      'taxonomy_vocabulary' => 2,
      'tour' => 2,
      'user' => 6,
      'user_role' => 5,
      'user_role' => 6,
      'view' => 27,
    ];
  }
+2 −2
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ class MigrateUpgradeUbercart7Test extends MigrateUpgradeExecuteTestBase {
   */
  protected function getEntityCounts() {
    return [
      'action' => 27,
      'action' => 29,
      'base_field_override' => 1,
      'block' => 28,
      'block_content' => 1,
@@ -150,7 +150,7 @@ class MigrateUpgradeUbercart7Test extends MigrateUpgradeExecuteTestBase {
      'taxonomy_vocabulary' => 2,
      'tour' => 2,
      'user' => 4,
      'user_role' => 3,
      'user_role' => 4,
      'view' => 27,
    ];
  }