File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ final class SymfonyScaffold
2222 'compose.yaml ' ,
2323 'compose.override.yaml ' ,
2424 'compose.prod.yaml ' ,
25+ '.devcontainer ' ,
2526 'frankenphp ' ,
2627 ];
2728 private const KNOWN_FORMATS = [
Original file line number Diff line number Diff line change 1414
1515final class SymfonyScaffoldTest extends TestCase
1616{
17+ private const DEVCONTAINER_DIR = '.devcontainer ' ;
18+
1719 public function testGreetingsTemplateOnlyDeclaresWorkingCollectionOperation (): void
1820 {
1921 $ template = (string ) file_get_contents (Templates::path ('Greetings.php ' ));
@@ -58,6 +60,13 @@ public function testSymfonyDockerRefIsPinnedToFullCommitSha(): void
5860 $ this ->assertMatchesRegularExpression ('/^[0-9a-f]{40}$/ ' , SymfonyScaffold::SYMFONY_DOCKER_REF );
5961 }
6062
63+ public function testSymfonyDockerCopyListIncludesDevcontainer (): void
64+ {
65+ $ dockerFiles = (new \ReflectionClass (SymfonyScaffold::class))->getConstant ('DOCKER_FILES ' );
66+
67+ $ this ->assertContains (self ::DEVCONTAINER_DIR , $ dockerFiles );
68+ }
69+
6170 public function testDisablesAllUiViewersWhenEmptyButKeepsHydraDocs (): void
6271 {
6372 // No UI selected must NOT trigger enable_docs: false — that's a master
You can’t perform that action at this time.
0 commit comments