Browse Source

Fixed some problems caused by the visibility changes.

Juan Basso 14 years ago
parent
commit
689c7ffd45

+ 7 - 0
lib/Cake/Console/Command/SchemaShell.php

@@ -38,6 +38,13 @@ class SchemaShell extends Shell {
 	public $Schema;
 
 /**
+ * is this a dry run?
+ *
+ * @var boolean
+ */
+	protected $_dry = null;
+
+/**
  * Override initialize
  *
  * @return string

+ 2 - 2
lib/Cake/Controller/Component/RequestHandlerComponent.php

@@ -91,7 +91,7 @@ class RequestHandlerComponent extends Component {
  * @param array $settings Array of settings.
  */
 	public function __construct(ComponentCollection $collection, $settings = array()) {
-		$this->addInputType('xml', array(array($this, '_convertXml')));
+		$this->addInputType('xml', array(array($this, 'convertXml')));
 		parent::__construct($collection, $settings);
 	}
 
@@ -175,7 +175,7 @@ class RequestHandlerComponent extends Component {
  * @param string $xml
  * @return array Xml array data
  */
-	protected function _convertXml($xml) {
+	public function convertXml($xml) {
 		try {
 			$xml = Xml::build($xml);
 			if (isset($xml->data)) {

+ 3 - 3
lib/Cake/Test/Case/Console/Command/TestsuiteShellTest.php

@@ -34,7 +34,7 @@ class TestsuiteShellTest extends CakeTestCase {
 
 		$this->Shell = $this->getMock(
 			'TestsuiteShell',
-			array('in', 'out', 'hr', 'help', 'error', 'err', '_stop', 'initialize', 'run', 'clear'),
+			array('in', 'out', 'hr', 'help', 'error', 'err', '_stop', 'initialize', '_run', 'clear'),
 			array($out, $out, $in)
 		);
 		$this->Shell->OptionParser = $this->getMock('ConsoleOptionParser', array(), array(null, false));
@@ -80,7 +80,7 @@ class TestsuiteShellTest extends CakeTestCase {
 			->with(__d('cake_console', 'What test case would you like to run?'), null, 'q')
 			->will($this->returnValue('1'));
 
-		$this->Shell->expects($this->once())->method('run');
+		$this->Shell->expects($this->once())->method('_run');
 		$this->Shell->available();
 		$this->assertEquals($this->Shell->args, array('core', 'AllBehaviors'));
 	}
@@ -95,7 +95,7 @@ class TestsuiteShellTest extends CakeTestCase {
 		$this->Shell->args = array('core', 'Basics');
 		$this->Shell->params = array('filter' => 'myFilter', 'colors' => true, 'verbose' => true);
 
-		$this->Shell->expects($this->once())->method('run')
+		$this->Shell->expects($this->once())->method('_run')
 			->with(
 				array('app' => false, 'plugin' => null, 'core' => true, 'output' => 'text', 'case' => 'Basics'),
 				array('--filter', 'myFilter', '--colors', '--verbose')

+ 1 - 1
lib/Cake/View/Helper/FormHelper.php

@@ -934,7 +934,7 @@ class FormHelper extends AppHelper {
 					$options['type'] = 'hidden';
 				}
 				if (
-					$options['type'] === 'number' && 
+					$options['type'] === 'number' &&
 					$type === 'float' &&
 					!isset($options['step'])
 				) {