Skip to content

Commit 39a2dd8

Browse files
committed
Instead of ignoring the generated env.php file, let's remove it when it's no longer needed.
1 parent b6ef3f5 commit 39a2dd8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/internal/Magento/Framework/App/Test/Unit/ObjectManagerFactoryTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ class ObjectManagerFactoryTest extends TestCase
2222
/** @var string */
2323
protected static $originalIncludePath;
2424

25+
/** @var File */
26+
private static $fileIo;
27+
2528
public static function setUpBeforeClass(): void
2629
{
2730
self::$originalAutoloadFunctions = spl_autoload_functions();
2831
self::$originalIncludePath = get_include_path();
32+
self::$fileIo = new File();
2933
}
3034

3135
/**
@@ -41,6 +45,7 @@ public static function tearDownAfterClass(): void
4145
}
4246
set_include_path(self::$originalIncludePath);
4347
File::rmdirRecursive(__DIR__ . '/_files/var/');
48+
self::$fileIo->rm(__DIR__ . '/_files/app/etc/env.php');
4449
}
4550

4651
public function testCreateObjectManagerFactoryCouldBeOverridden()

lib/internal/Magento/Framework/App/Test/Unit/_files/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)