Skip to content

Commit

Permalink
Fixed some problems caused by the visibility changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Aug 21, 2011
1 parent a1a049c commit 689c7ff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions lib/Cake/Console/Command/SchemaShell.php
Expand Up @@ -37,6 +37,13 @@ class SchemaShell extends Shell {
*/
public $Schema;

/**
* is this a dry run?
*
* @var boolean
*/
protected $_dry = null;

/**
* Override initialize
*
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Controller/Component/RequestHandlerComponent.php
Expand Up @@ -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);
}

Expand Down Expand Up @@ -175,7 +175,7 @@ public function startup($controller) {
* @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)) {
Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Console/Command/TestsuiteShellTest.php
Expand Up @@ -34,7 +34,7 @@ public function setUp() {

$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));
Expand Down Expand Up @@ -80,7 +80,7 @@ public function testAvailableCoreCategory() {
->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'));
}
Expand All @@ -95,7 +95,7 @@ public function testRunnerOptions() {
$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')
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -934,7 +934,7 @@ public function input($fieldName, $options = array()) {
$options['type'] = 'hidden';
}
if (
$options['type'] === 'number' &&
$options['type'] === 'number' &&
$type === 'float' &&
!isset($options['step'])
) {
Expand Down

0 comments on commit 689c7ff

Please sign in to comment.