diff --git a/crm/src/Tests/ProcessContactTest.php b/crm/src/Tests/ProcessContactTest.php index 75d4fff..320410a 100644 --- a/crm/src/Tests/ProcessContactTest.php +++ b/crm/src/Tests/ProcessContactTest.php @@ -1,14 +1,10 @@ createField('entity_test', 'gift', 'donor', 'email', 'Donor email'); - $this->createField('entity_test', 'gift', 'recipient', 'string', 'Recipient name'); + $this->createField('entity_test_mul', 'gift', 'donor', 'email', 'Donor email'); + $this->createField('entity_test_mul', 'gift', 'recipient', 'string', 'Recipient name'); // Add activity type. ActivityType::create([ @@ -76,7 +72,7 @@ class ProcessContactTest extends WebTestBase { */ public function testContactProcessing() { // Create an entity. - $entity = EntityTest::create([ + $entity = EntityTestMul::create([ 'type' => 'gift', 'name' => 'Cookie', 'donor' => 'jlennon@example.com', @@ -102,9 +98,9 @@ class ProcessContactTest extends WebTestBase { ], t('Save')); // Capture the created entity. - $this->drupalPostForm('admin/content/collect/capture', ['entity_type' => 'entity_test'], t('Select entity type')); + $this->drupalPostForm('admin/content/collect/capture', ['entity_type' => 'entity_test_mul'], t('Select entity type')); $this->drupalPostForm(NULL, ['operation' => 'single', 'entity' => 'Cookie (' . $entity->id() . ')'], t('Capture')); - $this->assertText('The Test entity entity has been captured'); + $this->assertText('The Test entity - data table entity has been captured.'); // Create suggested model. $this->clickLink(t('Set up a @plugin model', ['@plugin' => t('Collect JSON')]));