From a92ede0248ee482979175dcb322ef07c7bd3d0cf Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 20 Mar 2019 16:14:04 +0545 Subject: [PATCH] Add an acceptance test step form for ignoring the lat line of the log file --- .../acceptance/features/bootstrap/Logging.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/acceptance/features/bootstrap/Logging.php b/tests/acceptance/features/bootstrap/Logging.php index 9560e4f6da63..9cacf154b94b 100644 --- a/tests/acceptance/features/bootstrap/Logging.php +++ b/tests/acceptance/features/bootstrap/Logging.php @@ -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