public function testLoadByView() { $viewId = 'view_id'; $this->_resourceMock->expects($this->once())->method('load')->with($this->model, $viewId)->willReturnSelf(); $this->model->loadByView($viewId); $this->assertEquals($viewId, $this->model->getViewId()); }
/** * {@inheritdoc} */ public function getViewId() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getViewId'); if (!$pluginInfo) { return parent::getViewId(); } else { return $this->___callPlugins('getViewId', func_get_args(), $pluginInfo); } }