/** * Returns the Source of the Tree * * @return object The tree data source object */ public function getTreeSource() { $source = $this->dataManager->get($this->getTreeSourceType()); $source->setHierarchyDriver($this); return $source; }
/** * Test expected interface. * * @return void * * @expectedException Zend\ServiceManager\Exception\RuntimeException * @expectedExceptionMessage Plugin ArrayObject does not belong to VuFind\Hierarchy\TreeDataSource\AbstractBase */ public function testExpectedInterface() { $pm = new PluginManager(null); $pm->validatePlugin(new \ArrayObject()); }