diff --git a/core/modules/user/src/Tests/Views/UserLinkEditTest.php b/core/modules/user/src/Tests/Views/UserLinkEditTest.php new file mode 100644 index 0000000..2e64c0c --- /dev/null +++ b/core/modules/user/src/Tests/Views/UserLinkEditTest.php @@ -0,0 +1,38 @@ +drupalLogin($this->drupalCreateUser(array('administer users'))); + $this->drupalGet('test_user_link_edit'); + + $edit_url = \Drupal::urlGenerator()->generate('entity.user.edit_form', array('user' => $this->users[0]->id(), 'destination' => '/test_user_link_edit')); + + $this->assertLinkByHref($edit_url); + } + +} diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_link_edit.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_link_edit.yml new file mode 100644 index 0000000..a3c6384 --- /dev/null +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_link_edit.yml @@ -0,0 +1,58 @@ +langcode: und +status: true +dependencies: + module: + - user +id: test_user_link_edit +label: test_user_link_edit +module: views +description: '' +tag: '' +base_table: users +base_field: uid +core: '8' +display: + default: + display_options: + access: + type: none + cache: + type: none + exposed_form: + type: basic + pager: + type: full + row: + type: fields + style: + type: default + fields: + name: + id: uid + table: users + field: uid + entity_type: user + entity_field: uid + edit_node: + id: edit_node + table: users + field: edit_node + relationship: none + group_type: group + admin_label: '' + label: '' + hide_alter_empty: true + text: '' + entity_type: user + plugin_id: user_link_edit + display_plugin: default + display_title: Master + id: default + position: 0 + page_1: + display_options: + path: test_user_link_edit + display_plugin: page + display_title: Page + id: page_1 + position: 0