/** * @group DataModel * @group DataModelGetData * @covers FOF30\Model\DataModel::getData */ public function testGetData() { $config = array('idFieldName' => 'foftest_bare_id', 'tableName' => '#__foftest_bares'); $model = new DataModelStub(self::$container, $config); $model->find(1); $result = $model->getData(); $check = array('foftest_bare_id' => 1, 'title' => 'First Row'); $this->assertEquals($check, $result, 'DataModel::getData Returned the wrong result'); }