find() public method

List all the plugins and extensions available on the server.
public find ( string $type = 'plugins' ) : void
$type string plugins|extensions
return void
Beispiel #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);
 }