Skip to content

Commit

Permalink
updating some console\create tests after last changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwoo committed Nov 5, 2010
1 parent 3d8771d commit ff629c4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff629c4

Please sign in to comment.