/** * @group DataModel * @group DataModelTrash * @covers FOF30\Model\DataModel::trash * @dataProvider PublishDataprovider::getTestTrashException */ public function testTrashException($test, $check) { $config = array('idFieldName' => $test['tableid'], 'tableName' => $test['table']); $this->setExpectedException($check['exception']); $model = new DataModelStub(static::$container, $config); $model->trash($test['id']); }