diff --git a/modules/node/node.test b/modules/node/node.test index 9ef4c25..34ffb05 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -2644,5 +2644,9 @@ class NodeEntityViewModeAlterTest extends NodeWebTestCase { $this->assertText('Extra data that should appear only in the teaser for the node.', 'Teaser text present'); // Make sure body text is not present. $this->assertNoText('Data that should appear only in the body for the node.', 'Body text not present'); + + // Test that the correct build mode has been set. + $build = node_view($node); + $this->assertEqual($build['#view_mode'], 'teaser', 'The view mode has correctly been set to teaser.'); } }