From a539b0e00dedddfea36d4a96b788e42923056a78 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 5 Sep 2009 15:05:05 +0000 Subject: - Patch by #565496 by dropcube, pwolanin: changed Allow dynamic attaching of other types of stuff to render() structures. --- modules/simpletest/tests/common.test | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index dc6b0c7c8..d58a0ec1a 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -896,14 +896,10 @@ class JavaScriptTestCase extends DrupalWebTestCase { } /** - * Tests the addition of libraries through the #attached_library property. + * Tests the addition of libraries through the #attached['library'] property. */ function testAttachedLibrary() { - $element = array( - '#attached_library' => array( - array('system', 'farbtastic'), - ) - ); + $element['#attached']['library'][] = array('system', 'farbtastic'); drupal_render($element); $scripts = drupal_get_js(); $this->assertTrue(strpos($scripts, 'misc/farbtastic/farbtastic.js'), t('The attached_library property adds the additional libraries.')); -- cgit v1.2.3