From e4bb1cc603ed8c00e2c08818df3fbc5ee42f8779 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 15 Oct 2019 20:26:22 +0200 Subject: [PATCH] MDL-66919 behat: fix typo in error message Also fix a couple of phpdocs that were incorrect. --- lib/tests/behat/behat_general.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index 4f42c3499da..087a6bfe9b8 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -765,7 +765,7 @@ class behat_general extends behat_base { * @Then :preelement :preselectortype should appear before :postelement :postselectortype in the :containerelement :containerselectortype * @throws ExpectationException * @param string $preelement The locator of the preceding element - * @param string $preselectortype The locator of the preceding element + * @param string $preselectortype The selector type of the preceding element * @param string $postelement The locator of the latest element * @param string $postselectortype The selector type of the latest element * @param string $containerelement @@ -779,7 +779,7 @@ class behat_general extends behat_base { $containerelement = null, $containerselectortype = null ) { - $msg = "'{$preelement}' '{$preselectortype}' does not appear after '{$postelement}' '{$postselectortype}'"; + $msg = "'{$preelement}' '{$preselectortype}' does not appear before '{$postelement}' '{$postselectortype}'"; $this->check_element_order( $containerelement, $containerselectortype, @@ -800,7 +800,7 @@ class behat_general extends behat_base { * @param string $postelement The locator of the latest element * @param string $postselectortype The selector type of the latest element * @param string $preelement The locator of the preceding element - * @param string $preselectortype The locator of the preceding element + * @param string $preselectortype The selector type of the preceding element * @param string $containerelement * @param string $containerselectortype */