Skip to content

Commit 53d9700

Browse files
committed
MC-40791: Add a static test to prevent creating new legacy fixture files
1 parent a5fe0bb commit 53d9700

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Legacy/LegacyFixtureTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class LegacyFixtureTest extends TestCase
2222
*/
2323
public function testNew(): void
2424
{
25+
$docUrl = 'https://devdocs.magento.com/guides/v2.4/test/integration/parameterized_data_fixture.html';
2526
$files = AddedFiles::getAddedFilesList(__DIR__ . '/..');
2627
$legacyFixtureFiles = [];
2728
foreach ($files as $file) {
@@ -35,7 +36,8 @@ public function testNew(): void
3536
$this->assertCount(
3637
0,
3738
$legacyFixtureFiles,
38-
"Fixture files are deprecated. Please use parameterized data fixtures.\r\n" .
39+
"The format used for creating fixtures is deprecated. Please use parametrized fixture format.\n"
40+
. " For details please look at $docUrl.\r\n" .
3941
"The following fixture files were added:\r\n"
4042
. implode(PHP_EOL, $legacyFixtureFiles)
4143
);

0 commit comments

Comments
 (0)