This test case is wrong. (Lines 873-875 of node.test.)

    // Create an unpromoted "Basic page" node.
    $node2 = $this->drupalCreateNode(array('type' => 'page', 'promote' => 0));
    $this->assertTrue(node_load($node1->nid), t('Unpromoted basic page node created.'));

Creates $node2 but tests $node1.

CommentFileSizeAuthor
#1 965514-bad-test.patch1.17 KBagentrickard

Comments

agentrickard’s picture

Status: Active » Needs review
Issue tags: +Simpletest
StatusFileSize
new1.17 KB

Patch.

bfroehle’s picture

Status: Needs review » Reviewed & tested by the community

Yep. Found this one independently.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Well that's dumb. Thanks, committed to HEAD!

dries’s picture

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Simpletest

Automatically closed -- issue fixed for 2 weeks with no activity.