Skip to content
Snippets Groups Projects
Commit 1004c40d authored by catch's avatar catch
Browse files

Issue #3376369 by Spokje, quietone, smustgrave, catch: Remove use of book in...

Issue #3376369 by Spokje, quietone, smustgrave, catch: Remove use of book in non profile and update tests

(cherry picked from commit 2c6bb82a)
parent c0bfe53b
No related branches found
No related tags found
14 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...,!6560Update ClaroPreRender.php, confirming classes provided are in array format,!6528Issue #3414261 by catch: Add authenticated user umami performance tests,!6501Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors...,!6354Draft: Issue #3380392 by phma: Updating language weight from the overview reverts label if translated,!6324Issue #3416723 by Ludo.R: Provide a "node type" views default argument
Pipeline #75822 passed with warnings
Pipeline: drupal

#75839

    Pipeline: drupal

    #75835

      Pipeline: drupal

      #75832

        +1
        ......@@ -193,67 +193,4 @@ public function testCommentFieldCreate() {
        $this->assertSession()->statusMessageContains('Saved User comment configuration.', 'status');
        }
        /**
        * Tests that comment module works when installed after a content module.
        */
        public function testCommentInstallAfterContentModule() {
        // Create a user to do module administration.
        $this->adminUser = $this->drupalCreateUser([
        'access administration pages',
        'administer modules',
        ]);
        $this->drupalLogin($this->adminUser);
        // Drop default comment field added in CommentTestBase::setUp().
        FieldStorageConfig::loadByName('node', 'comment')->delete();
        if ($field_storage = FieldStorageConfig::loadByName('node', 'comment_forum')) {
        $field_storage->delete();
        }
        // Purge field data now to allow comment module to be uninstalled once the
        // field has been deleted.
        field_purge_batch(10);
        // Uninstall the comment module.
        $edit = [];
        $edit['uninstall[comment]'] = TRUE;
        $this->drupalGet('admin/modules/uninstall');
        $this->submitForm($edit, 'Uninstall');
        $this->submitForm([], 'Uninstall');
        $this->rebuildContainer();
        $this->assertFalse($this->container->get('module_handler')->moduleExists('comment'), 'Comment module uninstalled.');
        // Install core content type module (book).
        $edit = [];
        $edit['modules[book][enable]'] = 'book';
        $this->drupalGet('admin/modules');
        $this->submitForm($edit, 'Install');
        // Now install the comment module.
        $edit = [];
        $edit['modules[comment][enable]'] = 'comment';
        $this->drupalGet('admin/modules');
        $this->submitForm($edit, 'Install');
        $this->rebuildContainer();
        $this->assertTrue($this->container->get('module_handler')->moduleExists('comment'), 'Comment module enabled.');
        // Create nodes of each type.
        $this->addDefaultCommentField('node', 'book');
        $book_node = $this->drupalCreateNode(['type' => 'book']);
        $this->drupalLogout();
        // Try to post a comment on each node. A failure will be triggered if the
        // comment body is missing on one of these forms, due to postComment()
        // asserting that the body is actually posted correctly.
        $this->webUser = $this->drupalCreateUser([
        'access content',
        'access comments',
        'post comments',
        'skip comment approval',
        ]);
        $this->drupalLogin($this->webUser);
        $this->postComment($book_node, $this->randomMachineName(), $this->randomMachineName());
        }
        }
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment