8
8
use Magento \Customer \Api \CustomerRepositoryInterface ;
9
9
use Magento \Customer \Api \Data \CustomerInterface ;
10
10
use Magento \Framework \Exception \LocalizedException ;
11
- use PHPUnit \Framework \Constraint \Constraint ;
12
11
use Magento \Framework \Message \MessageInterface ;
13
12
use Magento \TestFramework \Helper \Bootstrap ;
14
13
use Magento \TestFramework \TestCase \AbstractBackendController ;
14
+ use PHPUnit_Framework_Constraint ;
15
15
16
16
/**
17
17
* @magentoAppArea adminhtml
@@ -40,13 +40,13 @@ protected function setUp()
40
40
* Validates failure attempts to delete customers from grid.
41
41
*
42
42
* @param array|null $ids
43
- * @param Constraint $constraint
43
+ * @param \PHPUnit_Framework_Constraint $constraint
44
44
* @param string|null $messageType
45
45
* @magentoDataFixture Magento/Customer/_files/five_repository_customers.php
46
46
* @magentoDbIsolation disabled
47
47
* @dataProvider failedRequestDataProvider
48
48
*/
49
- public function testFailedMassDeleteAction ($ ids , Constraint $ constraint , $ messageType )
49
+ public function testFailedMassDeleteAction ($ ids , PHPUnit_Framework_Constraint $ constraint , $ messageType )
50
50
{
51
51
$ this ->massDeleteAssertions ($ ids , $ constraint , $ messageType );
52
52
}
@@ -55,13 +55,13 @@ public function testFailedMassDeleteAction($ids, Constraint $constraint, $messag
55
55
* Validates success attempt to delete customer from grid.
56
56
*
57
57
* @param array $emails
58
- * @param Constraint $constraint
58
+ * @param PHPUnit_Framework_Constraint $constraint
59
59
* @param string $messageType
60
60
* @magentoDataFixture Magento/Customer/_files/five_repository_customers.php
61
61
* @magentoDbIsolation disabled
62
62
* @dataProvider successRequestDataProvider
63
63
*/
64
- public function testSuccessMassDeleteAction (array $ emails , Constraint $ constraint , string $ messageType )
64
+ public function testSuccessMassDeleteAction (array $ emails , PHPUnit_Framework_Constraint $ constraint , $ messageType )
65
65
{
66
66
try {
67
67
$ ids = [];
@@ -85,10 +85,10 @@ public function testSuccessMassDeleteAction(array $emails, Constraint $constrain
85
85
* Performs required request and assertions.
86
86
*
87
87
* @param array|null $ids
88
- * @param Constraint $constraint
88
+ * @param PHPUnit_Framework_Constraint $constraint
89
89
* @param string|null $messageType
90
90
*/
91
- private function massDeleteAssertions ($ ids , Constraint $ constraint , $ messageType )
91
+ private function massDeleteAssertions ($ ids , PHPUnit_Framework_Constraint $ constraint , $ messageType )
92
92
{
93
93
$ requestData = [
94
94
'selected ' => $ ids ,
0 commit comments