File tree Expand file tree Collapse file tree 7 files changed +19
-18
lines changed
app/code/Magento/Customer/Model/Resource
integration/testsuite/Magento/Framework/Validator
static/testsuite/Magento/Test/Legacy/_files
lib/internal/Magento/Framework/Validator Expand file tree Collapse file tree 7 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 12
12
class Address extends \Magento \Eav \Model \Entity \AbstractEntity
13
13
{
14
14
/**
15
- * @var \Magento\Core\Model \Validator\Factory
15
+ * @var \Magento\Framework \Validator\Factory
16
16
*/
17
17
protected $ _validatorFactory ;
18
18
@@ -28,7 +28,7 @@ class Address extends \Magento\Eav\Model\Entity\AbstractEntity
28
28
* @param \Magento\Framework\Locale\FormatInterface $localeFormat
29
29
* @param \Magento\Eav\Model\Resource\Helper $resourceHelper
30
30
* @param \Magento\Framework\Validator\UniversalFactory $universalFactory
31
- * @param \Magento\Core\Model \Validator\Factory $validatorFactory
31
+ * @param \Magento\Framework \Validator\Factory $validatorFactory
32
32
* @param \Magento\Customer\Model\CustomerFactory $customerFactory
33
33
* @param array $data
34
34
*/
@@ -39,7 +39,7 @@ public function __construct(
39
39
\Magento \Framework \Locale \FormatInterface $ localeFormat ,
40
40
\Magento \Eav \Model \Resource \Helper $ resourceHelper ,
41
41
\Magento \Framework \Validator \UniversalFactory $ universalFactory ,
42
- \Magento \Core \ Model \Validator \Factory $ validatorFactory ,
42
+ \Magento \Framework \Validator \Factory $ validatorFactory ,
43
43
\Magento \Customer \Model \CustomerFactory $ customerFactory ,
44
44
$ data = []
45
45
) {
Original file line number Diff line number Diff line change 13
13
class Customer extends \Magento \Eav \Model \Entity \AbstractEntity
14
14
{
15
15
/**
16
- * @var \Magento\Core\Model \Validator\Factory
16
+ * @var \Magento\Framework \Validator\Factory
17
17
*/
18
18
protected $ _validatorFactory ;
19
19
@@ -37,7 +37,7 @@ class Customer extends \Magento\Eav\Model\Entity\AbstractEntity
37
37
* @param \Magento\Eav\Model\Resource\Helper $resourceHelper
38
38
* @param \Magento\Framework\Validator\UniversalFactory $universalFactory
39
39
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
40
- * @param \Magento\Core\Model \Validator\Factory $validatorFactory
40
+ * @param \Magento\Framework \Validator\Factory $validatorFactory
41
41
* @param \Magento\Framework\Stdlib\DateTime $dateTime
42
42
* @param array $data
43
43
*/
@@ -49,7 +49,7 @@ public function __construct(
49
49
\Magento \Eav \Model \Resource \Helper $ resourceHelper ,
50
50
\Magento \Framework \Validator \UniversalFactory $ universalFactory ,
51
51
\Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfig ,
52
- \Magento \Core \ Model \Validator \Factory $ validatorFactory ,
52
+ \Magento \Framework \Validator \Factory $ validatorFactory ,
53
53
\Magento \Framework \Stdlib \DateTime $ dateTime ,
54
54
$ data = []
55
55
) {
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Integration test for \Magento\Core\Model \Validator\Factory
3
+ * Integration test for \Magento\Framework \Validator\Factory
4
4
*
5
5
* Copyright © 2015 Magento. All rights reserved.
6
6
* See COPYING.txt for license details.
7
7
*/
8
- namespace Magento \Core \ Model \Validator ;
8
+ namespace Magento \Framework \Validator ;
9
9
10
10
class FactoryTest extends \PHPUnit_Framework_TestCase
11
11
{
@@ -17,8 +17,8 @@ class FactoryTest extends \PHPUnit_Framework_TestCase
17
17
public function testGetValidatorConfig ()
18
18
{
19
19
$ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
20
- /** @var \Magento\Core\Model \Validator\Factory $factory */
21
- $ factory = $ objectManager ->get ('Magento\Core\Model \Validator\Factory ' );
20
+ /** @var \Magento\Framework \Validator\Factory $factory */
21
+ $ factory = $ objectManager ->get ('Magento\Framework \Validator\Factory ' );
22
22
$ this ->assertInstanceOf ('Magento\Framework\Validator\Config ' , $ factory ->getValidatorConfig ());
23
23
// Check that default translator was set
24
24
$ translator = \Magento \Framework \Validator \AbstractValidator::getDefaultTranslator ();
Original file line number Diff line number Diff line change 2854
2854
['Magento\Sales\Model\Quote\Address\Total\Nominal\Collector ' ],
2855
2855
['Magento\Sales\Model\Quote\Address\Total\Nominal\Shipping ' ],
2856
2856
['Magento\Sales\Model\Quote\Address\Total\Nominal\Subtotal ' ],
2857
+ ['Magento\Core\Model\Validator\Factory ' , 'Magento\Framework\Validator\Factory ' ],
2857
2858
];
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ protected function prepareEavConfig()
230
230
/**
231
231
* Prepare validator mock object
232
232
*
233
- * @return \Magento\Core\Model \Validator\Factory|\PHPUnit_Framework_MockObject_MockObject
233
+ * @return \Magento\Framework \Validator\Factory|\PHPUnit_Framework_MockObject_MockObject
234
234
*/
235
235
protected function prepareValidatorFactory ()
236
236
{
@@ -240,7 +240,7 @@ protected function prepareValidatorFactory()
240
240
->willReturn (true );
241
241
242
242
$ validatorFactory = $ this ->getMock (
243
- 'Magento\Core\Model \Validator\Factory ' ,
243
+ 'Magento\Framework \Validator\Factory ' ,
244
244
['createValidator ' ],
245
245
[],
246
246
'' ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Unit test for \Magento\Core\Model \Validator\Factory
3
+ * Unit test for \Magento\Framework \Validator\Factory
4
4
*
5
5
* Copyright © 2015 Magento. All rights reserved.
6
6
* See COPYING.txt for license details.
7
7
*/
8
- namespace Magento \Core \ Model \Validator ;
8
+ namespace Magento \Framework \Validator ;
9
9
10
10
class FactoryTest extends \PHPUnit_Framework_TestCase
11
11
{
@@ -104,7 +104,7 @@ protected function tearDown()
104
104
*/
105
105
public function testGetValidatorConfig ()
106
106
{
107
- $ factory = new \Magento \Core \ Model \Validator \Factory (
107
+ $ factory = new \Magento \Framework \Validator \Factory (
108
108
$ this ->_objectManager ,
109
109
$ this ->_config ,
110
110
$ this ->_translateAdapter
@@ -144,7 +144,7 @@ public function testCreateValidatorBuilder()
144
144
$ objectManager ->getObject ('Magento\Framework\Validator\Builder ' , ['constraints ' => []])
145
145
)
146
146
);
147
- $ factory = new \Magento \Core \ Model \Validator \Factory (
147
+ $ factory = new \Magento \Framework \Validator \Factory (
148
148
$ this ->_objectManager ,
149
149
$ this ->_config ,
150
150
$ this ->_translateAdapter
@@ -171,7 +171,7 @@ public function testCreateValidator()
171
171
)->will (
172
172
$ this ->returnValue (new \Magento \Framework \Validator ())
173
173
);
174
- $ factory = new \Magento \Core \ Model \Validator \Factory (
174
+ $ factory = new \Magento \Framework \Validator \Factory (
175
175
$ this ->_objectManager ,
176
176
$ this ->_config ,
177
177
$ this ->_translateAdapter
Original file line number Diff line number Diff line change 5
5
* Copyright © 2015 Magento. All rights reserved.
6
6
* See COPYING.txt for license details.
7
7
*/
8
- namespace Magento \Core \ Model \Validator ;
8
+ namespace Magento \Framework \Validator ;
9
9
10
10
class Factory
11
11
{
You can’t perform that action at this time.
0 commit comments