Esempio n. 1
0
 /**
  * @group           DataModel
  * @group           DataModelCanDelete
  * @covers          FOF30\Model\DataModel::canDelete
  * @dataProvider    DataModelCrudDataprovider::getTestCanDelete
  */
 public function testCanDelete($test, $check)
 {
     $config = array('idFieldName' => 'fakeapp_parent_id', 'tableName' => '#__fakeapp_parents');
     $model = new DataModelStub(static::$container, $config);
     if ($check['exception']) {
         $this->setExpectedException($check['exception'], $check['message']);
     }
     if ($test['load']) {
         $model->find($test['load']);
     }
     $model->canDelete($test['id'], $test['joins']);
     // Fake assertion to prevent PHPUnit from complaining
     $this->assertTrue(true);
 }