You are here

public function ViewModesTest::testMigration in Commerce Migrate 3.1.x

Same name in this branch
  1. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ViewModesTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ViewModesTest::testMigration()
  2. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ViewModesTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ViewModesTest::testMigration()
  3. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/ViewModesTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ViewModesTest::testMigration()
Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/ViewModesTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ViewModesTest::testMigration()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ViewModesTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ViewModesTest::testMigration()

Tests migration of D6 view mode to node and commerce_product entities.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/ViewModesTest.php, line 62

Class

ViewModesTest
Tests migration of view modes.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testMigration() {
  $this
    ->assertEntity('node.teaser', 'Teaser', 'node');
  $this
    ->assertEntity('node.full', 'Full content', 'node');
  $this
    ->assertEntity('node.rss', 'RSS', 'node');
  $this
    ->assertEntity('commerce_product.teaser', 'Teaser', 'commerce_product');
  $this
    ->assertEntity('commerce_product.full', 'Full', 'commerce_product');
  $this
    ->assertEntity('commerce_product.rss', 'RSS', 'commerce_product');
}