From 07542099d34cddcc410ea502d69b1bcff6ef511c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Tantau?= Date: Tue, 25 Apr 2017 13:42:46 +0200 Subject: [PATCH] Add getRouteName to mocked methods PHPUnit 5.7.7 complains that the method getRouteName doesn't exist. Adding it to the mocked methods array solves this. --- .../community/Studioforty9/Recaptcha/Test/Model/Observer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Studioforty9/Recaptcha/Test/Model/Observer.php b/app/code/community/Studioforty9/Recaptcha/Test/Model/Observer.php index d3d75b6..ca78f57 100644 --- a/app/code/community/Studioforty9/Recaptcha/Test/Model/Observer.php +++ b/app/code/community/Studioforty9/Recaptcha/Test/Model/Observer.php @@ -436,7 +436,7 @@ protected function getMockRequest() { $request = $this->getMockBuilder('Zend_Controller_Request_Abstract') ->disableOriginalConstructor() - ->setMethods(array('setDispatched', 'isPost', 'getPost')) + ->setMethods(array('setDispatched', 'isPost', 'getPost', 'getRouteName')) ->getMock(); // Expect getRouteName to be called