Code Duplication    Length = 7-7 lines in 6 locations

src/Drupal/DrupalExtension/Context/MessageContext.php 6 locations

@@ 49-55 (lines=7) @@
46
   *
47
   * @Then I should see the following error message(s):
48
   */
49
    public function assertMultipleErrors(TableNode $messages)
50
    {
51
        foreach ($messages->getHash() as $key => $value) {
52
            $message = trim($value['error messages']);
53
            $this->assertErrorVisible($message);
54
        }
55
    }
56
57
  /**
58
   * Checks if the current page does not contain the given error message
@@ 82-88 (lines=7) @@
79
   *
80
   * @Then I should not see the following error messages:
81
   */
82
    public function assertNotMultipleErrors(TableNode $messages)
83
    {
84
        foreach ($messages->getHash() as $key => $value) {
85
            $message = trim($value['error messages']);
86
            $this->assertNotErrorVisible($message);
87
        }
88
    }
89
90
  /**
91
   * Checks if the current page contains the given success message
@@ 116-122 (lines=7) @@
113
   *
114
   * @Then I should see the following success messages:
115
   */
116
    public function assertMultipleSuccessMessage(TableNode $messages)
117
    {
118
        foreach ($messages->getHash() as $key => $value) {
119
            $message = trim($value['success messages']);
120
            $this->assertSuccessMessage($message);
121
        }
122
    }
123
124
  /**
125
   * Checks if the current page does not contain the given set of success message
@@ 149-155 (lines=7) @@
146
   *
147
   * @Then I should not see the following success messages:
148
   */
149
    public function assertNotMultipleSuccessMessage(TableNode $messages)
150
    {
151
        foreach ($messages->getHash() as $key => $value) {
152
            $message = trim($value['success messages']);
153
            $this->assertNotSuccessMessage($message);
154
        }
155
    }
156
157
  /**
158
   * Checks if the current page contains the given warning message
@@ 183-189 (lines=7) @@
180
   *
181
   * @Then I should see the following warning messages:
182
   */
183
    public function assertMultipleWarningMessage(TableNode $messages)
184
    {
185
        foreach ($messages->getHash() as $key => $value) {
186
            $message = trim($value['warning messages']);
187
            $this->assertWarningMessage($message);
188
        }
189
    }
190
191
  /**
192
   * Checks if the current page does not contain the given set of warning message
@@ 216-222 (lines=7) @@
213
   *
214
   * @Then I should not see the following warning messages:
215
   */
216
    public function assertNotMultipleWarningMessage(TableNode $messages)
217
    {
218
        foreach ($messages->getHash() as $key => $value) {
219
            $message = trim($value['warning messages']);
220
            $this->assertNotWarningMessage($message);
221
        }
222
    }
223
224
  /**
225
   * Checks if the current page contain the given message