/** * @group DataModel * @group DataModelHas * @covers FOF30\Model\DataModel::has */ public function testHasException() { $this->setExpectedException('FOF30\\Model\\DataModel\\Exception\\InvalidSearchMethod'); $config = array('idFieldName' => 'foftest_bare_id', 'tableName' => '#__foftest_bares'); $model = new DataModelStub(static::$container, $config); $model->has('posts', 'wrong', true); }