Skip to content

Commit

Permalink
Merge pull request #34846 from owncloud/stable10-ignoring-the-last-li…
Browse files Browse the repository at this point in the history
…ne-in-logfile

[stable10] Add an acceptance test step form for ignoring the last line of the log file
  • Loading branch information
phil-davis authored Mar 20, 2019
2 parents 005ede2 + a92ede0 commit 0c52530
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/acceptance/features/bootstrap/Logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,24 @@ public function theLastLinesOfTheLogFileIgnoringSomeShouldContainEntries(
);
}

/**
* alternative wording theLastLinesOfTheLogFileShouldContainEntriesWithTheseAttributes()
*
* @Then /^the last lines of the log file, ignoring the last line, should contain log-entries (with|containing|matching) these attributes:$/
*
* @param string $comparingMode
* @param TableNode $expectedLogEntries
*
* @return void
*/
public function theLastLinesOfTheLogFileIgnoringLastShouldContainEntries(
$comparingMode, TableNode $expectedLogEntries
) {
$this->theLastLinesOfTheLogFileShouldContainEntriesWithTheseAttributes(
$comparingMode, 1, $expectedLogEntries
);
}

/**
* fails if there is at least one line in the log file that matches all
* given attributes
Expand Down

0 comments on commit 0c52530

Please sign in to comment.