only in patch2: unchanged: --- a/flag_follower/config/install/views.view.flag_followers.yml +++ b/flag_follower/config/install/views.view.flag_followers.yml @@ -6,7 +6,7 @@ dependencies: - flag - user _core: - default_config_hash: 5MBTq40KbLscG2VHKBCXaxuJhBqbTTxyF3BjoK9bxDw + default_config_hash: lScrf6-KbORlDNASbtC3RZyBnYRCEBCbFk_nod1kqa8 id: flag_followers label: 'Flag Followers' module: views @@ -106,25 +106,38 @@ display: id: name table: users_field_data field: name - entity_type: user - entity_field: name - label: '' + relationship: none + group_type: group + admin_label: '' + label: Username + exclude: false alter: alter_text: false + text: '' make_link: false + path: '' absolute: false - trim: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 word_boundary: false ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' strip_tags: false + trim: false + preserve_tags: '' html: false - hide_empty: false - empty_zero: false - plugin_id: field - relationship: none - group_type: group - admin_label: '' - exclude: false element_type: '' element_class: '' element_label_type: '' @@ -134,10 +147,13 @@ display: element_wrapper_class: '' element_default_classes: true empty: '' + hide_empty: false + empty_zero: false hide_alter_empty: true click_sort_column: value type: user_name - settings: { } + settings: + link_to_entity: true group_column: value group_columns: { } group_rows: true @@ -148,6 +164,66 @@ display: multi_type: separator separator: ', ' field_api_classes: false + entity_type: user + entity_field: name + plugin_id: field + count: + id: count + table: flag_counts + field: count + relationship: flag_relationship + group_type: group + admin_label: '' + label: Followers + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + set_precision: false + precision: 0 + decimal: . + separator: ',' + format_plural: false + format_plural_string: "1\x03@count" + prefix: '' + suffix: '' + plugin_id: numeric link_flag: id: link_flag table: flagging only in patch2: unchanged: --- a/flag_follower/src/Tests/FlagFollowerUITest.php +++ b/flag_follower/src/Tests/FlagFollowerUITest.php @@ -144,12 +144,12 @@ class FlagFollowerUITest extends WebTestBase { /** * Test user flagging. * - * User A follows user B. B follows A and C. C follows no one. + * User A follows user C. B follows A and C. C follows no one. */ public function doUserFlagging() { - // User A follows user B. + // User A follows user C. $this->drupalLogin($this->userA); - $this->drupalGet('user/' . $this->userB->id()); + $this->drupalGet('user/' . $this->userC->id()); $this->clickLink(t('Follow this user')); // User B follows user A. @@ -170,13 +170,16 @@ class FlagFollowerUITest extends WebTestBase { public function doFollowerView() { $this->drupalLogin($this->userA); $this->drupalGet('flag-followers'); - $this->assertNoText($this->userC->getAccountName()); - $this->assertText($this->userB->getAccountName()); + $this->assertNoText($this->userB->getAccountName()); + $this->assertText($this->userC->getAccountName()); + $this->assertText('2', 'A sees C has two followers.'); $this->drupalLogin($this->userB); $this->drupalGet('flag-followers'); $this->assertText($this->userA->getAccountName()); $this->assertText($this->userC->getAccountName()); + $this->assertText('2', 'B sees C has two followers.'); + $this->assertText('1', 'B sees A has one follower.'); $this->drupalLogin($this->userC); $this->drupalGet('flag-followers'); @@ -190,8 +193,8 @@ class FlagFollowerUITest extends WebTestBase { public function doContentView() { $this->drupalLogin($this->userA); $this->drupalGet('flag-followers/content'); - $this->assertText($this->nodeB->label()); - $this->assertNoText($this->nodeC->label()); + $this->assertText($this->nodeC->label()); + $this->assertNoText($this->nodeB->label()); $this->drupalLogin($this->userB); $this->drupalGet('flag-followers/content');