You are here

protected function DestinationCategoryTestTrait::getContentClasses in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Plugin/migrate/DestinationCategoryTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\DestinationCategoryTestTrait::getContentClasses()
  2. 3.0.x tests/src/Kernel/Plugin/migrate/DestinationCategoryTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\DestinationCategoryTestTrait::getContentClasses()

Get content classes.

Content migrations should have a destination plugin that is an instance of one of the following classes.

Return value

array The content class names.

1 call to DestinationCategoryTestTrait::getContentClasses()
DestinationCategoryTestTrait::assertCategories in tests/src/Kernel/Plugin/migrate/DestinationCategoryTestTrait.php
Asserts that all migrations are tagged as either Configuration or Content.

File

tests/src/Kernel/Plugin/migrate/DestinationCategoryTestTrait.php, line 75

Class

DestinationCategoryTestTrait
Provides methods for testing migration categories.

Namespace

Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate

Code

protected function getContentClasses() {
  return [
    EntityContentBase::class,
    UrlAlias::class,
    BlockedIP::class,
    NodeCounter::class,
    UserData::class,
  ];
}