Skip to content
Merged
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
15 changes: 11 additions & 4 deletions tests/Set/SetManager/SetManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testMatchComposerTriggered(): void
$setManager = $this->createSetManagerWithProjectDirectory(getcwd());

$twigComposerTriggeredSet = $setManager->matchComposerTriggered(SetGroup::TWIG);
$this->assertCount(7, $twigComposerTriggeredSet);
$this->assertCount(8, $twigComposerTriggeredSet);
}

/**
Expand All @@ -43,13 +43,20 @@ public function testByVersion(string $projectDirectory, array $expectedSets): vo
public static function provideInstalledTwigData(): Iterator
{
// here we cannot used features coming up in 2.4, as we only have 2.0
yield [__DIR__ . '/Fixture/project-twig-20', [realpath(TwigSetList::TWIG_20)]];
yield [
__DIR__ . '/Fixture/project-twig-20',
[realpath(TwigSetList::COMPOSER_BASED), realpath(TwigSetList::TWIG_20)],
];

yield [__DIR__ . '/Fixture/project-twig-24', [realpath(TwigSetList::TWIG_20), realpath(TwigSetList::TWIG_24)]];
yield [
__DIR__ . '/Fixture/project-twig-24',
[realpath(TwigSetList::COMPOSER_BASED), realpath(TwigSetList::TWIG_20), realpath(TwigSetList::TWIG_24)],
];

yield [
__DIR__ . '/Fixture/project-twig-127',
[realpath(TwigSetList::TWIG_112), realpath(TwigSetList::TWIG_127)]];
[realpath(TwigSetList::COMPOSER_BASED), realpath(TwigSetList::TWIG_112), realpath(TwigSetList::TWIG_127)],
];
}

private function createSetManagerWithProjectDirectory(string $projectDirectory): SetManager
Expand Down
Loading