'page', ], [ 'type' => 'story', ], ]; $tests[0]['source_data']['variable'] = [ [ 'name' => 'comment_subject_field_page', 'value' => serialize(1), ], [ 'name' => 'comment_subject_field_story', 'value' => serialize(0), ], ]; // The expected results. // Each result will also include a label and description, but those are // static values set by the source plugin and don't need to be asserted. $tests[0]['expected_data'] = [ [ 'comment_type' => 'comment', ], [ 'comment_type' => 'comment_no_subject', ], ]; return $tests; } }