From 7e649293f90ca52e7a0bde05fa316ad3b143eb75 Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Thu, 18 Jan 2018 18:15:05 +0100 Subject: [PATCH] BUGFIX: Adjust test to updated symfony/dom-crawler --- Tests/Functional/AbstractFunctionalTestCase.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Tests/Functional/AbstractFunctionalTestCase.php b/Tests/Functional/AbstractFunctionalTestCase.php index 2469f8c..696040d 100644 --- a/Tests/Functional/AbstractFunctionalTestCase.php +++ b/Tests/Functional/AbstractFunctionalTestCase.php @@ -56,9 +56,8 @@ public function setUp() protected function gotoNextFormPage(Form $form) { $nextButton = $this->browser->getCrawler()->filterXPath('//nav[@class="form-navigation"]/*/*[contains(@class, "next")]/button'); - $nextButton->rewind(); /** @var \DOMElement $node */ - $node = $nextButton->current(); + $node = $nextButton->getNode(0); $form->set(new InputFormField($node)); return $this->browser->submit($form); @@ -73,9 +72,8 @@ protected function gotoNextFormPage(Form $form) protected function gotoPreviousFormPage(Form $form) { $previousButton = $this->browser->getCrawler()->filterXPath('//nav[@class="form-navigation"]/*/*[contains(@class, "previous")]/button'); - $previousButton->rewind(); /** @var \DOMElement $node */ - $node = $previousButton->current(); + $node = $previousButton->getNode(0); $form->set(new InputFormField($node)); return $this->browser->submit($form);