From 2e8ca690ff471b1d6604226e8153f401b1827204 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 27 Jan 2009 00:22:27 +0000 Subject: - Patch #351235 by dmitrig01, webchick, frando, moshe weitzman, et al: hook_page_alter. Oh, behave. --- modules/upload/upload.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/upload') diff --git a/modules/upload/upload.test b/modules/upload/upload.test index 79358225b..bd4bfbdc9 100644 --- a/modules/upload/upload.test +++ b/modules/upload/upload.test @@ -53,7 +53,7 @@ class UploadTestCase extends DrupalWebTestCase { // Assure that the attachment link appears on teaser view and has correct count. $node = node_load($node->nid); - $teaser = node_view($node, TRUE); + $teaser = drupal_render(node_build($node, TRUE)); $this->assertTrue(strpos($teaser, format_plural(2, '1 attachment', '@count attachments')), 'Attachments link found on node teaser.'); // Fetch db record and use fid to rename and delete file. -- cgit v1.2.3