Пример #1
0
 /**
  * @group           DataModel
  * @group           DataModelGetId
  * @covers          FOF30\Model\DataModel::getId
  */
 public function testGetId()
 {
     $config = array('idFieldName' => 'foftest_bare_id', 'tableName' => '#__foftest_bares');
     $model = new DataModelStub(self::$container, $config);
     $model->find(2);
     $id = $model->getId();
     $this->assertEquals(2, $id, 'DataModel::getId Failed to return the correct id');
 }