Add type hints in SchemaShell.

I'm trying to figure out what's going on in the failing travis builds.
This commit is contained in:
mark_story 2013-02-28 22:54:31 -05:00
parent 8d3cd6e8fd
commit 1d529c1dd2
2 changed files with 7 additions and 4 deletions

View file

@ -471,8 +471,11 @@ class SchemaShellTest extends CakeTestCase {
);
$this->Shell->args = array('SchemaShellTest', 'articles');
$this->Shell->startup();
$this->Shell->expects($this->any())->method('in')->will($this->returnValue('y'));
$this->Shell->expects($this->once())->method('_run')
$this->Shell->expects($this->any())
->method('in')
->will($this->returnValue('y'));
$this->Shell->expects($this->once())
->method('_run')
->with($this->arrayHasKey('articles'), 'update', $this->isInstanceOf('CakeSchema'));
$this->Shell->update();