diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index 15ce9ff32..b3982bfe4 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -88,7 +88,7 @@ class Controller extends Object implements CakeEventListener { * An array containing the names of helpers this controller uses. The array elements should * not contain the "Helper" part of the classname. * - * Example: `public $helpers = array('Html', 'JavaScript', 'Time', 'Ajax');` + * Example: `public $helpers = array('Html', 'Js', 'Time', 'Ajax');` * * @var mixed A single name as a string or a list of names as an array. * @link http://book.cakephp.org/2.0/en/controllers.html#components-helpers-and-uses diff --git a/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php b/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php index 1a34c3ef6..e030be1c0 100644 --- a/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php +++ b/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php @@ -94,7 +94,7 @@ class MergeVarPluginAppController extends MergeVarsAppController { * * @var array */ - public $helpers = array('JavaScript'); + public $helpers = array('Js'); /** * parent for mergeVars @@ -205,7 +205,7 @@ class ControllerMergeVarsTest extends CakeTestCase { $expected = array( 'MergeVar' => array('format' => 'html', 'terse'), - 'JavaScript' => null + 'Js' => null ); $this->assertEquals($expected, $Controller->helpers, 'Helpers are unexpected.');