Skip to content

Commit 476f06b

Browse files
author
silinmykola
committed
fixes for Static Tests
1 parent 8806093 commit 476f06b

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

app/code/Magento/Customer/Model/Metadata/Form/Text.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
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
*/

app/code/Magento/Customer/Test/Unit/Model/Metadata/Form/MultiselectTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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+
89
namespace Magento\Customer\Test\Unit\Model\Metadata\Form;
910

1011
use Magento\Customer\Api\Data\OptionInterface;

lib/internal/Magento/Framework/Code/Test/Unit/GeneratorTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use PHPUnit\Framework\TestCase;
2121
use Magento\Framework\ObjectManagerInterface;
2222
use Magento\Framework\Code\Generator\EntityAbstract;
23-
use Magento\GeneratedClass\Factory as GeneratedClassFactory;
2423
use 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

0 commit comments

Comments
 (0)