Commit dd8c44b4 authored by webchick's avatar webchick
Browse files

Issue #1757564 by damiankloip, dawehner, tim.plunkett: Change 'name' to 'id' on View entity.

parent e15c6de8
base_table: node
name: test_bulk_form
id: test_bulk_form
description: ''
tag: ''
human_name: form
......
......@@ -38,7 +38,7 @@ public static function getInfo() {
public function testCommentWizard() {
$view = array();
$view['human_name'] = $this->randomName(16);
$view['name'] = strtolower($this->randomName(16));
$view['id'] = strtolower($this->randomName(16));
$view['show[wizard_key]'] = 'comment';
$view['page[create]'] = TRUE;
$view['page[path]'] = $this->randomName(16);
......@@ -46,7 +46,7 @@ public function testCommentWizard() {
// Just triggering the saving should automatically choose a proper row
// plugin.
$this->drupalPost('admin/structure/views/add', $view, t('Save and edit'));
$this->assertUrl('admin/structure/views/view/' . $view['name'], array(), 'Make sure the view saving was successful and the browser got redirected to the edit page.');
$this->assertUrl('admin/structure/views/view/' . $view['id'], array(), 'Make sure the view saving was successful and the browser got redirected to the edit page.');
// If we update the type first we should get a selection of comment valid
// row plugins as the select field.
......@@ -67,11 +67,11 @@ public function testCommentWizard() {
$expected_options = array('comment', 'fields');
$this->assertEqual($options, $expected_options);
$view['name'] = strtolower($this->randomName(16));
$view['id'] = strtolower($this->randomName(16));
$this->drupalPost(NULL, $view, t('Save and edit'));
$this->assertUrl('admin/structure/views/view/' . $view['name'], array(), 'Make sure the view saving was successful and the browser got redirected to the edit page.');
$this->assertUrl('admin/structure/views/view/' . $view['id'], array(), 'Make sure the view saving was successful and the browser got redirected to the edit page.');
$view = views_get_view($view['name']);
$view = views_get_view($view['id']);
$view->initHandlers();
$row = $view->display_handler->getOption('row');
$this->assertEqual($row['type'], 'comment');
......
......@@ -60,6 +60,6 @@ display:
path: test-comment-rss
human_name: test_comment_rss
module: views
name: test_comment_rss
id: test_comment_rss
tag: ''
uuid: 9b1b1e58-d41b-468a-9d04-4e6bde742c29
......@@ -44,5 +44,5 @@ display:
id: default
position: '0'
human_name: test_comment_user_uid
name: test_comment_user_uid
id: test_comment_user_uid
tag: default
......@@ -34,5 +34,5 @@ display:
id: default
position: '0'
human_name: test_view_fieldapi
name: test_view_fieldapi
id: test_view_fieldapi
tag: default
......@@ -16,5 +16,5 @@ display:
id: default
position: '0'
human_name: ''
name: test_field_type
id: test_field_type
tag: ''
......@@ -46,5 +46,5 @@ display:
id: default
position: '0'
human_name: test_filter_node_uid_revision
name: test_filter_node_uid_revision
id: test_filter_node_uid_revision
tag: default
name: test_node_revision_nid
id: test_node_revision_nid
base_table: node_revision
core: 8
api_version: 3
......
name: test_node_revision_vid
id: test_node_revision_vid
base_table: node_revision
core: 8
api_version: 3
......
base_table: node
name: test_status_extra
id: test_status_extra
description: ''
tag: ''
human_name: test_status_extra
......
base_table: entity_test
name: test_serializer_display_entity
id: test_serializer_display_entity
description: ''
tag: ''
human_name: 'Test serialize display entity rows'
......
base_table: views_test_data
name: test_serializer_display_field
id: test_serializer_display_field
description: ''
tag: ''
human_name: 'Test serializer display field rows'
......
......@@ -62,5 +62,5 @@ display:
human_name: test_groupwise
langcode: und
module: views
name: test_groupwise_term
id: test_groupwise_term
tag: default
......@@ -69,5 +69,5 @@ display:
id: default
position: '0'
human_name: test_taxonomy_node_term_data
name: test_taxonomy_node_term_data
id: test_taxonomy_node_term_data
tag: ''
......@@ -25,5 +25,5 @@ display:
id: default
position: '0'
human_name: ''
name: test_access_perm
id: test_access_perm
tag: ''
......@@ -23,5 +23,5 @@ display:
id: default
position: '0'
human_name: ''
name: test_access_role
id: test_access_role
tag: ''
......@@ -72,5 +72,5 @@ display:
human_name: test_groupwise_user
langcode: und
module: views
name: test_groupwise_user
id: test_groupwise_user
tag: default
......@@ -52,5 +52,5 @@ display:
id: default
position: '0'
human_name: ''
name: test_plugin_argument_default_current_user
id: test_plugin_argument_default_current_user
tag: ''
......@@ -49,5 +49,5 @@ display:
id: page_1
position: '0'
human_name: ''
name: test_user_name
id: test_user_name
tag: ''
......@@ -98,5 +98,5 @@ display:
id: default
position: '0'
human_name: test_user_relationship
name: test_user_relationship
id: test_user_relationship
tag: default
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