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 11<?php
22/**
3- * Form Element Text Data Model
4- *
53 * Copyright © Magento, Inc. All rights reserved.
64 * See COPYING.txt for license details.
75 */
Original file line number Diff line number Diff line change 1- <?php declare (strict_types= 1 );
1+ <?php
22/**
3- * test Magento\Customer\Model\Metadata\Form\Multiselect
4- *
53 * Copyright © Magento, Inc. All rights reserved.
64 * See COPYING.txt for license details.
75 */
6+
7+ declare (strict_types=1 );
8+
89namespace Magento \Customer \Test \Unit \Model \Metadata \Form ;
910
1011use Magento \Customer \Api \Data \OptionInterface ;
Original file line number Diff line number Diff line change 2020use PHPUnit \Framework \TestCase ;
2121use Magento \Framework \ObjectManagerInterface ;
2222use Magento \Framework \Code \Generator \EntityAbstract ;
23- use Magento \GeneratedClass \Factory as GeneratedClassFactory ;
2423use RuntimeException ;
2524
2625/**
@@ -163,7 +162,7 @@ public function testShouldNotGenerateVirtualType(): void
163162 $ this ->objectManagerConfigMock
164163 ->expects ($ this ->once ())
165164 ->method ('getVirtualTypes ' )
166- ->willReturn ([GeneratedClassFactory::class => GeneratedClassFactory::class ]);
165+ ->willReturn ([' Magento\GeneratedClass\Factory ' => ' Magento\GeneratedClass\Factory ' ]);
167166 $ this ->objectManagerMock
168167 ->expects ($ this ->once ())
169168 ->method ('get ' )
@@ -173,7 +172,7 @@ public function testShouldNotGenerateVirtualType(): void
173172
174173 $ this ->assertSame (
175174 Generator::GENERATION_SKIP ,
176- $ this ->model ->generateClass (GeneratedClassFactory::class )
175+ $ this ->model ->generateClass (' Magento\GeneratedClass\Factory ' )
177176 );
178177 }
179178
@@ -325,7 +324,7 @@ public function testGenerateClassWithExistName($fileExists): void
325324
326325 $ this ->assertSame (
327326 Generator::GENERATION_SKIP ,
328- $ this ->model ->generateClass (GeneratedClassFactory::class )
327+ $ this ->model ->generateClass (' Magento\GeneratedClass\Factory ' )
329328 );
330329 }
331330
You can’t perform that action at this time.
0 commit comments