MDL-66335 behat: Avoid double processing the page type
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Oct 2019 21:52:28 +0000 (23:52 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Oct 2019 21:52:28 +0000 (23:52 +0200)
commitc461c96d25d4f3e6ae5b2863305b301615ccf83a
tree7fa0af51e0e38f821ceb87fefbda1b5a27110c20
parent82d71a5c83f7380abef77720f1236d7224b49f13
MDL-66335 behat: Avoid double processing the page type

resolve_page_instance_helper() already processes the type, returning
the correct context that should be processing the navigation URL.

With that extra call to parse_page_name() the 2nd call always returns
"core", ultimately leading to tons of behat failures because "core" is
not aware of those (plugin, quiz for now) pages typology.
lib/tests/behat/behat_navigation.php