Skip to content
Snippets Groups Projects
Commit a03cd761 authored by Bernd Oliver Suenderhauf's avatar Bernd Oliver Suenderhauf
Browse files

Followup to: Issue #3052875 by Pancho: Skip storing entity context for samples

parent a3f5f090
No related branches found
No related tags found
No related merge requests found
...@@ -28,11 +28,14 @@ class ParseLinkSampleTest extends UnitTestCase { ...@@ -28,11 +28,14 @@ class ParseLinkSampleTest extends UnitTestCase {
if ($request_context['sample']) { if ($request_context['sample']) {
$this->assertEmpty($request_context['entity_ids']); $this->assertEmpty($request_context['entity_ids']);
} }
elseif (count($entity_ids) == 2) {
$this->assertEquals(['node' => ['1' => '1', '2' => '2']], $request_context['entity_ids']);
}
else { else {
$this->assertEquals(['node' => ['1' => '1']], $request_context['entity_ids']); $expected = [
'node' => ['1' => '1'],
];
if (is_array($entity_ids) && count($entity_ids) == 2) {
$expected['node']['2'] = '2';
}
$this->assertEquals($expected, $request_context['entity_ids']);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment