lithium\tests\cases\console\command\LibraryTest::testNoInstall PHP Method

testNoInstall() public method

public testNoInstall ( )
    public function testNoInstall()
    {
        $result = $this->library->install('library_test_plugin');
        $expected = "library_test_plugin not installed.\n";
        $result = $this->library->response->output;
        $this->assertEqual($expected, $result);
        $this->library->response->output = null;
        $this->request->params += array('server' => null);
        $library = new Library(array('request' => $this->request, 'classes' => $this->classes));
        $library->conf = $this->testConf;
        $library->config('server', 'localhost');
        $result = $this->library->install('library_not_a_plugin');
        $expected = "library_not_a_plugin not found.\n";
        $result = $this->library->response->error;
        $this->assertEqual($expected, $result);
    }