File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
app/code/Magento/Customer
Test/Unit/Model/Metadata/Form
lib/internal/Magento/Framework/Code/Test/Unit Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Form Element Text Data Model
4
- *
5
3
* Copyright © Magento, Inc. All rights reserved.
6
4
* See COPYING.txt for license details.
7
5
*/
Original file line number Diff line number Diff line change 1
- <?php declare (strict_types= 1 );
1
+ <?php
2
2
/**
3
- * test Magento\Customer\Model\Metadata\Form\Multiselect
4
- *
5
3
* Copyright © Magento, Inc. All rights reserved.
6
4
* See COPYING.txt for license details.
7
5
*/
6
+
7
+ declare (strict_types=1 );
8
+
8
9
namespace Magento \Customer \Test \Unit \Model \Metadata \Form ;
9
10
10
11
use Magento \Customer \Api \Data \OptionInterface ;
Original file line number Diff line number Diff line change 20
20
use PHPUnit \Framework \TestCase ;
21
21
use Magento \Framework \ObjectManagerInterface ;
22
22
use Magento \Framework \Code \Generator \EntityAbstract ;
23
- use Magento \GeneratedClass \Factory as GeneratedClassFactory ;
24
23
use RuntimeException ;
25
24
26
25
/**
@@ -163,7 +162,7 @@ public function testShouldNotGenerateVirtualType(): void
163
162
$ this ->objectManagerConfigMock
164
163
->expects ($ this ->once ())
165
164
->method ('getVirtualTypes ' )
166
- ->willReturn ([GeneratedClassFactory::class => GeneratedClassFactory::class ]);
165
+ ->willReturn ([' Magento\GeneratedClass\Factory ' => ' Magento\GeneratedClass\Factory ' ]);
167
166
$ this ->objectManagerMock
168
167
->expects ($ this ->once ())
169
168
->method ('get ' )
@@ -173,7 +172,7 @@ public function testShouldNotGenerateVirtualType(): void
173
172
174
173
$ this ->assertSame (
175
174
Generator::GENERATION_SKIP ,
176
- $ this ->model ->generateClass (GeneratedClassFactory::class )
175
+ $ this ->model ->generateClass (' Magento\GeneratedClass\Factory ' )
177
176
);
178
177
}
179
178
@@ -325,7 +324,7 @@ public function testGenerateClassWithExistName($fileExists): void
325
324
326
325
$ this ->assertSame (
327
326
Generator::GENERATION_SKIP ,
328
- $ this ->model ->generateClass (GeneratedClassFactory::class )
327
+ $ this ->model ->generateClass (' Magento\GeneratedClass\Factory ' )
329
328
);
330
329
}
331
330
You can’t perform that action at this time.
0 commit comments