Verified Commit 6bfec5bc authored by Dave Long's avatar Dave Long
Browse files

Issue #987238 by acbramley, jenlampton, ajalan065, idebr, nsuit, dcam,...

Issue #987238 by acbramley, jenlampton, ajalan065, idebr, nsuit, dcam, aLearner, LinL, smustgrave, realityloop, rootwork, lluvigne, jlbellido, Cauliflower, alvar0hurtad0, vito_a, pflame, hussainweb, kim.pepper, colinafoley, mohit_aghera, netlooker, pawelgorski87, internetdevels, kattekrab, David_Rothstein, webchick, yoroy, xjm, Everett Zufelt, benjifisher, haydeniv, naveenvalecha, LarsKramer, yesct, godotislate, mstrelan, dig1, tim.plunkett, longwave, Renee S: "Promoted to front page" for new content types should default to Un-Checked
parent 296b7aef
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ public function testCommentFieldLinksNonDefaultName(): void {
    $node = $this->drupalCreateNode([
      'title' => 'Baloney',
      'type' => 'test_node_type',
      'promote' => TRUE,
    ]);

    // Go to the node first so that web_user2 see new comments.
+4 −1
Original line number Diff line number Diff line
@@ -124,7 +124,10 @@ public function testDifferentPermissions(): void {
    $this->assertSame('', $json[$ids[3]]);

    // Verify that link language is properly handled.
    $node3->addTranslation('it')->set('title', $this->randomString())->save();
    $node3->addTranslation('it', [
      'title' => $this->randomString(),
      'promote' => TRUE,
    ])->save();
    $id = 'node:node=' . $node3->id() . ':changed=' . $node3->getChangedTime() . '&langcode=it';
    $this->drupalGet('node', ['language' => ConfigurableLanguage::createFromLangcode('it')]);
    $this->assertContextualLinkPlaceHolder($id);
+1 −0
Original line number Diff line number Diff line
@@ -284,6 +284,7 @@ protected function createDefaultContent($num_articles, $num_tags, $article_has_i
      $values = [
        'uid' => ['target_id' => $this->user->id()],
        'type' => 'article',
        'promote' => TRUE,
      ];

      if ($referencing_twice) {
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ protected function getExpectedDocument(): array {
            'pid' => 1,
            'langcode' => 'en',
          ],
          'promote' => TRUE,
          'promote' => FALSE,
          'revision_timestamp' => '1973-11-29T21:33:09+00:00',
          // @todo Attempt to remove this in https://www.drupal.org/project/drupal/issues/2933518.
          'revision_translation_affected' => TRUE,
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ protected function setUp(): void {
          'value' => 'The first node body',
        ],
      ],
      'promote' => TRUE,
    ]);
    $this->createNode([
      'type' => 'bundle_with_section_field',
@@ -65,6 +66,7 @@ protected function setUp(): void {
          'value' => 'The second node body',
        ],
      ],
      'promote' => TRUE,
    ]);
  }

Loading