Beispiel #1
0
 function test_allGetMethods()
 {
     // Executes all API methods get* and check for output
     // In this plugin, output is static and manually set in the API.php, but in other scripts,
     // one could generate fake inputs, and check that ouputs are processed as expected
     // @see tests/integration/ for more info
     $this->setApiToCall('ExampleAPI');
     // Ignore the getPiwikVersion call which would otherwise fail at every new release
     $this->setApiNotToCall('ExampleAPI.getPiwikVersion');
     $renderers = Piwik_DataTable_Renderer::getRenderers();
     $this->callGetApiCompareOutput(__FUNCTION__, $renderers);
 }