diff options
Diffstat (limited to 'modules/simpletest/tests/common.test')
-rw-r--r-- | modules/simpletest/tests/common.test | 8 |
1 files changed, 2 insertions, 6 deletions
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.')); |