Skip to content

Commit 6d87330

Browse files
committed
Fix static tests.
1 parent b8ab61b commit 6d87330

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/internal/Magento/Framework/Code/Generator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Magento\Framework\Filesystem\Driver\File;
1515
use Psr\Log\LoggerInterface;
1616

17+
/**
18+
* Class code generator.
19+
*/
1720
class Generator
1821
{
1922
const GENERATION_SUCCESS = 'success';

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
use Magento\GeneratedClass\Factory as GeneratedClassFactory;
2424
use RuntimeException;
2525

26+
/**
27+
* Tests for code generator.
28+
*
29+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
30+
*/
2631
class GeneratorTest extends TestCase
2732
{
2833
/**
@@ -143,7 +148,7 @@ public function testGenerateClass($className, $entityType): void
143148

144149
$this->assertSame(
145150
Generator::GENERATION_SUCCESS,
146-
$this->model->generateClass(GeneratedClassFactory::class)
151+
$this->model->generateClass($fullClassName)
147152
);
148153
}
149154

0 commit comments

Comments
 (0)