Extends
lithium\test\UnitSource
public function testRunWithModelCommand() {
$this->request->params = array(
'library' => 'create_test', 'command' => 'create', 'action' => 'model',
'args' => array('Posts')
);
$create = new MockCreate(array('request' => $this->request));
$create->run('model');
$expected = 'model';
$result = $create->request->command;
$this->assertEqual($expected, $result);
$result = $this->_testPath . '/create_test/models/Posts.php';
$this->assertTrue(file_exists($result));
}