Permalink
Browse files

updating some console\create tests after last changes.

  • Loading branch information...
1 parent 3d8771d commit ff629c4ae971c7d3e8aaa894d231e55b039f8ba5 @gwoo gwoo committed Nov 5, 2010
View
4 libraries/lithium/tests/cases/console/command/create/ControllerTest.php
@@ -70,8 +70,8 @@ public function testUse() {
public function testRun() {
$this->request->params += array(
- 'command' => 'create', 'action' => 'run',
- 'args' => array('controller', 'Posts')
+ 'command' => 'create', 'action' => 'controller',
+ 'args' => array('Posts')
);
$controller = new Controller(array(
'request' => $this->request, 'classes' => $this->classes
View
4 libraries/lithium/tests/cases/console/command/create/MockTest.php
@@ -45,8 +45,8 @@ public function tearDown() {
public function testMockModel() {
$this->request->params += array(
- 'command' => 'create', 'action' => 'run',
- 'args' => array('mock', 'model', 'Post')
+ 'command' => 'create', 'action' => 'mock',
+ 'args' => array('model', 'Post')
);
$mock = new Mock(array(
'request' => $this->request, 'classes' => $this->classes
View
9 libraries/lithium/tests/cases/console/command/create/TestTest.php
@@ -46,8 +46,8 @@ public function tearDown() {
public function testTestModel() {
$this->request->params += array(
- 'command' => 'create', 'action' => 'run',
- 'args' => array('test', 'model', 'Post')
+ 'command' => 'create', 'action' => 'test',
+ 'args' => array('model', 'Post')
);
$test = new Test(array(
'request' => $this->request, 'classes' => $this->classes
@@ -84,6 +84,7 @@ public function tearDown() {}
}
public function testTestModelWithMethods() {
+ $this->_cleanUp();
mkdir($this->_testPath . '/create_test/models/', 0755, true);
file_put_contents($this->_testPath . '/create_test/models/Post.php',
"<?php
@@ -95,8 +96,8 @@ public function someMethod() {}
);
$this->request->params += array(
- 'command' => 'create', 'action' => 'run',
- 'args' => array('test', 'model', 'Post')
+ 'command' => 'create', 'action' => 'test',
+ 'args' => array('model', 'Post')
);
$test = new Test(array(
'request' => $this->request, 'classes' => $this->classes
View
4 libraries/lithium/tests/cases/console/command/create/ViewTest.php
@@ -45,8 +45,8 @@ public function tearDown() {
public function testIndexView() {
$this->request->params += array(
- 'command' => 'create', 'action' => 'run',
- 'args' => array('view', 'Posts', 'index.html')
+ 'command' => 'create', 'action' => 'view',
+ 'args' => array('Posts', 'index.html')
);
$view = new View(array(
'request' => $this->request, 'classes' => $this->classes

0 comments on commit ff629c4

Please sign in to comment.