Code Duplication    Length = 3-3 lines in 2 locations

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

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