예제 #1
0
파일: GenericTest.php 프로젝트: Joal01/fof
 /**
  * @group           DataModel
  * @group           DataModelToArray
  * @covers          FOF30\Model\DataModel::toArray
  */
 public function testToarray()
 {
     $config = array('idFieldName' => 'foftest_bare_id', 'tableName' => '#__foftest_bares');
     $model = new DataModelStub(static::$container, $config);
     $model->find(1);
     $result = $model->toArray();
     $check = array('foftest_bare_id' => 1, 'title' => 'First Row');
     $this->assertEquals($check, $result, 'DataModel::toArray Failed to return the array format');
 }