diff options
Diffstat (limited to 'plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php')
-rw-r--r-- | plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php b/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php index 9b03f74fa3..64a5f80435 100644 --- a/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php +++ b/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php @@ -241,7 +241,10 @@ class MobileMessagingTest extends IntegrationTestCase 'parameters' => array(MobileMessaging::PHONE_NUMBERS_PARAMETER => array($phoneNumber)), ); - $stubbedAPIMobileMessaging = $this->getMock('\\Piwik\\Plugins\\MobileMessaging\\API', array('sendSMS', 'getInstance'), $arguments = array(), $mockClassName = '', $callOriginalConstructor = false); + $stubbedAPIMobileMessaging = $this->getMockBuilder('\\Piwik\\Plugins\\MobileMessaging\\API') + ->setMethods(array('sendSMS', 'getInstance')) + ->disableOriginalConstructor() + ->getMock(); $stubbedAPIMobileMessaging->expects($this->once())->method('sendSMS')->with( $this->equalTo($expectedReportContent, 0), $this->equalTo($expectedPhoneNumber, 1), |