Skip to content

Commit 1f158a0

Browse files
committed
Replace deprecated ->getMock() call
1 parent 29a41cb commit 1f158a0

10 files changed

+23
-23
lines changed

tests/unit/Interactions/Internal/WebDriverButtonReleaseActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class WebDriverButtonReleaseActionTest extends \PHPUnit_Framework_TestCase {
2727
private $locationProvider;
2828

2929
public function setUp() {
30-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
31-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
30+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
31+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3232
$this->webDriverButtonReleaseAction = new WebDriverButtonReleaseAction(
3333
$this->webDriverMouse,
3434
$this->locationProvider

tests/unit/Interactions/Internal/WebDriverClickActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class WebDriverClickActionTest extends \PHPUnit_Framework_TestCase {
2727
private $locationProvider;
2828

2929
public function setUp() {
30-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
31-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
30+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
31+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3232
$this->webDriverClickAction = new WebDriverClickAction(
3333
$this->webDriverMouse,
3434
$this->locationProvider

tests/unit/Interactions/Internal/WebDriverClickAndHoldActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class WebDriverClickAndHoldActionTest extends \PHPUnit_Framework_TestCase {
2727
private $locationProvider;
2828

2929
public function setUp() {
30-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
31-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
30+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
31+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3232
$this->webDriverClickAndHoldAction = new WebDriverClickAndHoldAction(
3333
$this->webDriverMouse,
3434
$this->locationProvider

tests/unit/Interactions/Internal/WebDriverContextClickActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class WebDriverContextClickActionTest extends \PHPUnit_Framework_TestCase {
2727
private $locationProvider;
2828

2929
public function setUp() {
30-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
31-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
30+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
31+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3232
$this->webDriverContextClickAction = new WebDriverContextClickAction(
3333
$this->webDriverMouse,
3434
$this->locationProvider

tests/unit/Interactions/Internal/WebDriverDoubleClickActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class WebDriverDoubleClickActionTest extends \PHPUnit_Framework_TestCase {
2727
private $locationProvider;
2828

2929
public function setUp() {
30-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
31-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
30+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
31+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3232
$this->webDriverDoubleClickAction = new WebDriverDoubleClickAction(
3333
$this->webDriverMouse,
3434
$this->locationProvider

tests/unit/Interactions/Internal/WebDriverKeyDownActionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class WebDriverKeyDownActionTest extends \PHPUnit_Framework_TestCase {
3030
private $locationProvider;
3131

3232
public function setUp() {
33-
$this->webDriverKeyboard = $this->getMock('Facebook\WebDriver\WebDriverKeyboard');
34-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
35-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
33+
$this->webDriverKeyboard = $this->getMockBuilder('Facebook\WebDriver\WebDriverKeyboard')->getMock();
34+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
35+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3636

3737
$this->webDriverKeyDownAction = new WebDriverKeyDownAction(
3838
$this->webDriverKeyboard,

tests/unit/Interactions/Internal/WebDriverKeyUpActionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class WebDriverKeyUpActionTest extends \PHPUnit_Framework_TestCase {
3030
private $locationProvider;
3131

3232
public function setUp() {
33-
$this->webDriverKeyboard = $this->getMock('Facebook\WebDriver\WebDriverKeyboard');
34-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
35-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
33+
$this->webDriverKeyboard = $this->getMockBuilder('Facebook\WebDriver\WebDriverKeyboard')->getMock();
34+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
35+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3636

3737
$this->webDriverKeyUpAction = new WebDriverKeyUpAction(
3838
$this->webDriverKeyboard,

tests/unit/Interactions/Internal/WebDriverMouseMoveActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class WebDriverMouseMoveActionTest extends \PHPUnit_Framework_TestCase {
2727
private $locationProvider;
2828

2929
public function setUp() {
30-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
31-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
30+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
31+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3232

3333
$this->webDriverMouseMoveAction = new WebDriverMouseMoveAction(
3434
$this->webDriverMouse,

tests/unit/Interactions/Internal/WebDriverMouseToOffsetActionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class WebDriverMouseToOffsetActionTest extends \PHPUnit_Framework_TestCase {
2929
private $locationProvider;
3030

3131
public function setUp() {
32-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
33-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
32+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
33+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3434

3535
$this->webDriverMoveToOffsetAction = new WebDriverMoveToOffsetAction(
3636
$this->webDriverMouse,

tests/unit/Interactions/Internal/WebDriverSendKeysActionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class WebDriverSendKeysActionTest extends \PHPUnit_Framework_TestCase {
3232
private $keys;
3333

3434
public function setUp() {
35-
$this->webDriverKeyboard = $this->getMock('Facebook\WebDriver\WebDriverKeyboard');
36-
$this->webDriverMouse = $this->getMock('Facebook\WebDriver\WebDriverMouse');
37-
$this->locationProvider = $this->getMock('Facebook\WebDriver\Internal\WebDriverLocatable');
35+
$this->webDriverKeyboard = $this->getMockBuilder('Facebook\WebDriver\WebDriverKeyboard')->getMock();
36+
$this->webDriverMouse = $this->getMockBuilder('Facebook\WebDriver\WebDriverMouse')->getMock();
37+
$this->locationProvider = $this->getMockBuilder('Facebook\WebDriver\Internal\WebDriverLocatable')->getMock();
3838

3939
$this->keys = array('t', 'e', 's', 't');
4040
$this->webDriverSendKeysAction = new WebDriverSendKeysAction(

0 commit comments

Comments
 (0)