From 34e1b04dc738e5295a216b774b0656e8cc33afa1 Mon Sep 17 00:00:00 2001 From: l26yan <l26yan@uwaterloo.ca> Date: Fri, 21 May 2021 10:23:55 -0400 Subject: [PATCH] ISTWCMS-4832 Add creating a catalog item in order to make catalog nid ready for later use. --- tests/src/Functional/UwWcmsBasicTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/src/Functional/UwWcmsBasicTest.php b/tests/src/Functional/UwWcmsBasicTest.php index 83d81211a..f8cb3fdd5 100644 --- a/tests/src/Functional/UwWcmsBasicTest.php +++ b/tests/src/Functional/UwWcmsBasicTest.php @@ -378,6 +378,12 @@ class UwWcmsBasicTest extends BrowserTestBase { $this->assertFieldByXPath('//input[@type="url" and @id="edit-field-uw-event-map-0-uri"]', NULL, 'Map link field exists.'); $this->assertSession()->pageTextContains('Optional: provide a link to a map with the event location (e.g. https://uwaterloo.ca/map/)'); + // Create a catalog term in order to create a catalog item. + $edit = [ + 'edit-name-0-value' => $this->randomString(), + ]; + $this->drupalPostForm('admin/structure/taxonomy/manage/uw_vocab_catalogs/add', $edit, $this->t('Save')); + // Array of content types. // Keys: Content types. // Values: Array of extra fields and their types. @@ -393,6 +399,7 @@ class UwWcmsBasicTest extends BrowserTestBase { 'edit-field-uw-event-date-0-end-value-date' => 'date', 'edit-field-uw-event-date-0-end-value-time' => 'time', ], + 'uw_ct_catalog_item' => [], // uw_ct_sidebar is tested separately below. ]; -- GitLab