public function load($id) { $item = parent::load($id); if ($item && $item->entityType !== 'report') { //|| // ($item->namespace !== 'portal'))) { return null; } return $item; }
public function testLoadWatcher() { $watcher = $this->_service->load('343434343434'); $this->assertNotNull($watcher); $this->assertInstanceOf('\\Core\\Model\\WatcherModel', $watcher); }