lithium\tests\cases\console\command\CreateTest::testRunWithModelCommand PHP Метод

testRunWithModelCommand() публичный Метод

    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->assertFileExists($result);
    }