Commit e047459c authored by François Agneray's avatar François Agneray
Browse files

DatasetAction => done

parent a6c164f2
......@@ -93,7 +93,7 @@ final class DatasetActionTest extends TestCase
array_merge(
['name' => 'obs_cat', 'table_ref' => 'v_obs_cat'],
$fields,
['project_name' => 'anis_project', 'instance_name' => 'aspic', 'id_dataset_family' => 1]
['project_name' => 'anis_project', 'id_dataset_family' => 1]
),
JSON_UNESCAPED_SLASHES
),
......@@ -174,7 +174,9 @@ final class DatasetActionTest extends TestCase
private function addDatasetFamily(): DatasetFamily
{
$family = new DatasetFamily();
$instance = $this->addInstance();
$family = new DatasetFamily($instance);
$family->setLabel('Default dataset');
$family->setDisplay(10);
$this->entityManager->persist($family);
......@@ -186,7 +188,6 @@ final class DatasetActionTest extends TestCase
private function addADataset(): Dataset
{
$project = $this->addProject();
$instance = $this->addInstance();
$family = $this->addDatasetFamily();
$dataset = new Dataset('obs_cat');
......@@ -199,7 +200,6 @@ final class DatasetActionTest extends TestCase
$dataset->setDataPath('/mnt/obs_cat');
$dataset->setSelectableRow(false);
$dataset->setProject($project);
$dataset->setInstance($instance);
$dataset->setDatasetFamily($family);
$this->entityManager->persist($dataset);
$this->entityManager->flush();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment