From 21238589feda27738c33c8e80c1bae5bde181141 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Mon, 9 Mar 2020 15:54:35 +0100 Subject: [PATCH] Revert "remove unused file" This reverts commit c50621c4f92e18071e046a8f2137d029563a81f7. --- .../Expected/ExpectedRandomEntity.php | 15 +++++++++++++++ .../MoveEntitiesToEntityDirectoryRectorTest.php | 5 +++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 rules/autodiscovery/tests/Rector/FileSystem/MoveEntitiesToEntityDirectoryRector/Expected/ExpectedRandomEntity.php diff --git a/rules/autodiscovery/tests/Rector/FileSystem/MoveEntitiesToEntityDirectoryRector/Expected/ExpectedRandomEntity.php b/rules/autodiscovery/tests/Rector/FileSystem/MoveEntitiesToEntityDirectoryRector/Expected/ExpectedRandomEntity.php new file mode 100644 index 00000000000..495a569fc9b --- /dev/null +++ b/rules/autodiscovery/tests/Rector/FileSystem/MoveEntitiesToEntityDirectoryRector/Expected/ExpectedRandomEntity.php @@ -0,0 +1,15 @@ +doTestFile($originalFile); $this->assertFileExists($expectedFileLocation); - $this->assertFileEquals($expectedFileLocation, $expectedFileLocation); + $this->assertFileEquals($expectedFileContent, $expectedFileLocation); } public function provideData(): Iterator @@ -26,6 +26,7 @@ final class MoveEntitiesToEntityDirectoryRectorTest extends AbstractFileSystemRe yield [ __DIR__ . '/Source/Controller/RandomEntity.php', __DIR__ . '/Source/Entity/Fixture/RandomEntity.php', + __DIR__ . '/Expected/ExpectedRandomEntity.php', ]; }