/** * {@inheritdoc} */ public function getType() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getType'); if (!$pluginInfo) { return parent::getType(); } else { return $this->___callPlugins('getType', func_get_args(), $pluginInfo); } }
public function testGetTypeReturnsProvidedType() { $this->_model->setData(['type' => 'some_type'], 'scope'); $this->assertEquals('some_type', $this->_model->getType()); }