Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
e047459c
Commit
e047459c
authored
Dec 19, 2019
by
François Agneray
Browse files
DatasetAction => done
parent
a6c164f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/Action/DatasetActionTest.php
View file @
e047459c
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment