Пример #1
0
 function testGetPluginByname()
 {
     //The plugin factory
     $plugin_factory = new MockPluginFactory($this);
     $plugin_factory->expectOnce('getPluginByName');
     //The plugins manager
     $pm = new PluginManager($plugin_factory, mock('EventManager'), mock('SiteCache'), mock('ForgeUpgradeConfig'));
     $pm->getPluginByName('plugin_name');
 }
Пример #2
0
 function testGetPluginByname()
 {
     //The plugin factory
     $plugin_factory = new MockPluginFactory($this);
     $plugin_factory->expectOnce('getPluginByName');
     //The plugins manager
     $pm = new PluginManagerTestVersion($this);
     $pm->setReturnReference('_getPluginFactory', $plugin_factory);
     $pm->getPluginByName('plugin_name');
 }