Code Duplication    Length = 7-7 lines in 2 locations

src/Tests/EmbedButtonEditorAccessCheckTest.php 1 location

@@ 98-104 (lines=7) @@
95
   * @return string
96
   *   The retrieved HTML string.
97
   */
98
  public function getRoute($editor_id, $embed_button_id, $value = NULL) {
99
    $url = 'embed-test/access/' . $editor_id . '/' . $embed_button_id;
100
    if (!isset($value)) {
101
      $value = static::SUCCESS;
102
    }
103
    return $this->drupalGet($url, ['query' => ['value' => $value]]);
104
  }
105
106
}
107

src/Tests/PreviewTest.php 1 location

@@ 58-64 (lines=7) @@
55
   * @return string
56
   *   The retrieved HTML string.
57
   */
58
  public function getRoute($filter_format_id, $value = NULL) {
59
    $url = 'embed/preview/' . $filter_format_id;
60
    if (!isset($value)) {
61
      $value = static::SUCCESS;
62
    }
63
    return $this->drupalGet($url, ['query' => ['value' => $value]]);
64
  }
65
66
}
67