Skip to content

Commit 6bbfcf0

Browse files
author
Fred Sung
committed
MAGETWO-36367: Fix Messages in Setup CLI Commands
- Update test cases of AdminUserCreateCommandTest.php
1 parent ed9d73d commit 6bbfcf0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

setup/src/Magento/Setup/Test/Unit/Console/Command/AdminUserCreateCommandTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,36 +82,36 @@ public function testValidate(array $options, array $errors)
8282
public function validateDataProvider()
8383
{
8484
return [
85-
[[null, 'Doe', 'admin', 'test@test.com', '123123q'], ['First Name is a required field.']],
85+
[[null, 'Doe', 'admin', 'test@test.com', '123123q', '123123q'], ['First Name is a required field.']],
8686
[
87-
['John', null, null, 'test@test.com', '123123q'],
87+
['John', null, null, 'test@test.com', '123123q', '123123q'],
8888
['User Name is a required field.', 'Last Name is a required field.'],
8989
],
90-
[['John', 'Doe', 'admin', null, '123123q'], ['Please enter a valid email.']],
90+
[['John', 'Doe', 'admin', null, '123123q', '123123q'], ['Please enter a valid email.']],
9191
[
92-
['John', 'Doe', 'admin', 'test', '123123q'],
92+
['John', 'Doe', 'admin', 'test', '123123q', '123123q'],
9393
["'test' is not a valid email address in the basic format local-part@hostname"]
9494
],
9595
[
96-
['John', 'Doe', 'admin', 'test@test.com', ''],
96+
['John', 'Doe', 'admin', 'test@test.com', '', ''],
9797
[
9898
'Password is required field.',
9999
'Your password must be at least 7 characters.',
100100
'Your password must include both numeric and alphabetic characters.'
101101
]
102102
],
103103
[
104-
['John', 'Doe', 'admin', 'test@test.com', '123123'],
104+
['John', 'Doe', 'admin', 'test@test.com', '123123', '123123'],
105105
[
106106
'Your password must be at least 7 characters.',
107107
'Your password must include both numeric and alphabetic characters.'
108108
]
109109
],
110110
[
111-
['John', 'Doe', 'admin', 'test@test.com', '1231231'],
111+
['John', 'Doe', 'admin', 'test@test.com', '1231231', '1231231'],
112112
['Your password must include both numeric and alphabetic characters.']
113113
],
114-
[['John', 'Doe', 'admin', 'test@test.com', '123123q'], []],
114+
[['John', 'Doe', 'admin', 'test@test.com', '123123q', '123123q'], []],
115115
];
116116
}
117117
}

0 commit comments

Comments
 (0)