In addition, communicate with the a given server to add plugins and extensions to the current application. Push archived plugins to the server.
Inheritance: extends lithium\console\Command
Example #1
0
 public function testFindNotFound()
 {
     $this->request->params += array('server' => null);
     $library = new Library(array('request' => $this->request, 'classes' => $this->classes));
     $library->conf = $this->testConf;
     $library->config('server', 'localhost');
     $library->find();
     $expected = "No plugins at localhost\n";
     $result = $library->response->output;
     $this->assertEqual($expected, $result);
 }
 public function testExtractWhenLibraryDoesNotExist()
 {
     $this->skipIf(!extension_loaded('zlib'), 'The zlib extension is not loaded.');
     chdir($this->_testPath);
     $app = new Library(array('request' => new Request(), 'classes' => $this->classes));
     $app->library = 'does_not_exist';
     $expected = true;
     $result = $app->extract();
     $this->assertEqual($expected, $result);
     $this->assertTrue(file_exists($this->_testPath . '/new'));
     $expected = "new created in {$this->_testPath} from ";
     $expected .= LITHIUM_LIBRARY_PATH . "/lithium/console/command/create/template/app.phar.gz\n";
     $result = $app->response->output;
     $this->assertEqual($expected, $result);
     $this->_cleanUp();
 }