Code Duplication    Length = 3-3 lines in 2 locations

src/Drupal/DrupalExtension/Context/DrupalContext.php 2 locations

@@ 177-179 (lines=3) @@
174
   */
175
  public function assertTextInTableRow($text, $rowText) {
176
    $row = $this->getTableRow($this->getSession()->getPage(), $rowText);
177
    if (strpos($row->getText(), $text) === FALSE) {
178
      throw new \Exception(sprintf('Found a row containing "%s", but it did not contain the text "%s".', $rowText, $text));
179
    }
180
  }
181
182
  /**
@@ 189-191 (lines=3) @@
186
   */
187
  public function assertTextNotInTableRow($text, $rowText) {
188
    $row = $this->getTableRow($this->getSession()->getPage(), $rowText);
189
    if (strpos($row->getText(), $text) !== FALSE) {
190
      throw new \Exception(sprintf('Found a row containing "%s", but it contained the text "%s".', $rowText, $text));
191
    }
192
  }
193
194
  /**