public function MigrateContactCategoryTest::testContactCategory in Zircon Profile 8
Same name in this branch
- 8 core/modules/contact/src/Tests/Migrate/MigrateContactCategoryTest.php \Drupal\contact\Tests\Migrate\MigrateContactCategoryTest::testContactCategory()
- 8 core/modules/contact/src/Tests/Migrate/d6/MigrateContactCategoryTest.php \Drupal\contact\Tests\Migrate\d6\MigrateContactCategoryTest::testContactCategory()
Same name and namespace in other branches
- 8.0 core/modules/contact/src/Tests/Migrate/MigrateContactCategoryTest.php \Drupal\contact\Tests\Migrate\MigrateContactCategoryTest::testContactCategory()
The Drupal 6 and 7 contact categories to Drupal 8 migration.
File
- core/
modules/ contact/ src/ Tests/ Migrate/ MigrateContactCategoryTest.php, line 63 - Contains \Drupal\contact\Tests\Migrate\MigrateContactCategoryTest.
Class
- MigrateContactCategoryTest
- Migrate contact categories to contact.form.*.yml.
Namespace
Drupal\contact\Tests\MigrateCode
public function testContactCategory() {
$this
->assertEntity('website_feedback', 'Website feedback', [
'admin@example.com',
], '', 0);
$this
->assertEntity('some_other_category', 'Some other category', [
'test@example.com',
], 'Thanks for contacting us, we will reply ASAP!', 1);
$this
->assertEntity('a_category_much_longer_than_thir', 'A category much longer than thirty two characters', [
'fortyninechars@example.com',
], '', 2);
}