Commit b68e063e authored by alexpott's avatar alexpott

Revert "Issue #2208811 by Pol, ivanjaros, dawehner: Fixed Views with arguments...

Revert "Issue #2208811 by Pol, ivanjaros, dawehner: Fixed Views with arguments stopped working on front-end."

This reverts commit c55ac968.
parent e95124df
......@@ -23,7 +23,7 @@ class ModuleTest extends ViewUnitTestBase {
*
* @var array
*/
public static $testViews = array('test_view_status', 'test_view', 'test_argument');
public static $testViews = array('test_view_status', 'test_view');
/**
* Modules to enable.
......@@ -268,18 +268,6 @@ public function testViewsPluginList() {
}
}
/**
* Tests views.module: views_embed_view().
*/
public function testViewsEmbedView() {
\Drupal::moduleHandler()->install(array('user'));
$result = views_embed_view('test_argument');
$this->assertEqual(count($result['#view']->result), 5);
$result = views_embed_view('test_argument', 'default', 1);
$this->assertEqual(count($result['#view']->result), 1);
}
/**
* Helper to return an expected views option array.
*
......
......@@ -439,7 +439,7 @@ public function save() {
* but possibly from elsewhere.
*/
public function setArguments($args) {
$this->args = array_values($args);
$this->args = $args;
}
/**
......
base_table: views_test_data
core: '8'
description: ''
status: '1'
display:
default:
display_options:
defaults:
fields: '0'
pager: '0'
pager_options: '0'
sorts: '0'
arguments: '0'
fields:
age:
field: age
id: age
relationship: none
table: views_test_data
provider: views_test_data
id:
field: id
id: id
relationship: none
table: views_test_data
provider: views_test_data
name:
field: name
id: name
relationship: none
table: views_test_data
provider: views_test_data
pager:
options:
offset: '0'
type: none
pager_options: { }
sorts:
id:
field: id
id: id
order: ASC
relationship: none
table: views_test_data
provider: views_test_data
arguments:
id:
default_action: ignore
style_plugin: default_summary
style_options: { }
wildcard: all
wildcard_substitution: All
title: ''
default_argument_type: fixed
default_argument: ''
validate:
type: none
fail: 'not found'
break_phrase: '0'
not: '0'
id: id
table: views_test_data
field: id
relationship: none
default_options_div_prefix: ''
default_argument_user: '0'
default_argument_fixed: ''
default_argument_php: ''
validate_argument_node_type:
page: '0'
story: '0'
validate_argument_node_access: '0'
validate_argument_nid_type: nid
validate_argument_vocabulary: { }
validate_argument_type: tid
validate_argument_transform: '0'
validate_user_restrict_roles: '0'
validate_argument_php: ''
provider: views_test_data
display_plugin: default
display_title: Master
id: default
position: 0
label: ''
id: test_argument
tag: ''
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