Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Move fixtures into fixtures folder for generating new rules #240

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function addRuleAndTestCase(string $fixtureFileExtension): array
return [
__DIR__ . '/../../templates/rules/TYPO3__MajorPrefixed__/__Type__/__Name__.php',
__DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/__Name__Test.php.inc',
__DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixture/fixture.' . $fixtureFileExtension,
__DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.' . $fixtureFileExtension,
__DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/config/fractor.php.inc',
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function testCreateRuleForFlexFormWithoutChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/FlexForm/MigrateFlexFormFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/Fixture/fixture.xml');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/Fixtures/fixture.xml');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/MigrateFlexFormFractorTest.php.inc'
);
Expand Down Expand Up @@ -141,7 +141,7 @@ public function testCreateRuleForFlexFormWithChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/FlexForm/MigrateFlexFormFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/Fixture/fixture.xml');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/Fixtures/fixture.xml');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/FlexForm/MigrateFlexFormFractor/MigrateFlexFormFractorTest.php.inc'
);
Expand Down Expand Up @@ -176,7 +176,7 @@ public function testCreateRuleForFluidWithoutChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/Fluid/MigrateFluidFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/Fixture/fixture.html');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/Fixtures/fixture.html');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/MigrateFluidFractorTest.php.inc'
);
Expand Down Expand Up @@ -216,7 +216,7 @@ public function testCreateRuleForFluidWithChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/Fluid/MigrateFluidFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/Fixture/fixture.html');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/Fixtures/fixture.html');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/Fluid/MigrateFluidFractor/MigrateFluidFractorTest.php.inc'
);
Expand Down Expand Up @@ -251,7 +251,7 @@ public function testCreateRuleForTypoScriptWithoutChangelog(): void
self::assertFileExists($basePathRules . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/config/fractor.php');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/Fixture/fixture.typoscript'
$basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/Fixtures/fixture.typoscript'
);
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/MigrateTypoScriptFractorTest.php.inc'
Expand Down Expand Up @@ -296,7 +296,7 @@ public function testCreateRuleForTypoScriptWithChangelog(): void
self::assertFileExists($basePathRules . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/config/fractor.php');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/Fixture/fixture.typoscript'
$basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/Fixtures/fixture.typoscript'
);
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/TypoScript/MigrateTypoScriptFractor/MigrateTypoScriptFractorTest.php.inc'
Expand Down Expand Up @@ -331,7 +331,7 @@ public function testCreateRuleForYamlWithoutChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/Yaml/MigrateYamlFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/Fixture/fixture.yaml');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/Fixtures/fixture.yaml');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/MigrateYamlFractorTest.php.inc'
);
Expand Down Expand Up @@ -371,7 +371,7 @@ public function testCreateRuleForYamlWithChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/Yaml/MigrateYamlFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/Fixture/fixture.yaml');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/Fixtures/fixture.yaml');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/Yaml/MigrateYamlFractor/MigrateYamlFractorTest.php.inc'
);
Expand Down Expand Up @@ -405,7 +405,7 @@ public function testCreateRuleForComposerWithoutChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/Composer/MigrateComposerFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/Fixture/fixture.json');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/Fixtures/fixture.json');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/MigrateComposerFractorTest.php.inc'
);
Expand Down Expand Up @@ -448,7 +448,7 @@ public function testCreateRuleForComposerWithChangelog(): void
self::assertFileExists($basePathConfig . '/typo3-7.php');
self::assertFileExists($basePathRules . '/TYPO3v7/Composer/MigrateComposerFractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/config/fractor.php');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/Fixture/fixture.json');
self::assertFileExists($basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/Fixtures/fixture.json');
self::assertFileExists(
$basePathRuleTests . '/TYPO3v7/Composer/MigrateComposerFractor/MigrateComposerFractorTest.php.inc'
);
Expand Down