28
28
class DockerComposeConfiguratorTest extends TestCase
29
29
{
30
30
public const ORIGINAL_CONTENT = <<<'YAML'
31
- version: '3.4'
32
-
33
31
services:
34
32
app:
35
33
build:
@@ -640,11 +638,10 @@ public function testConfigureFileInParentDir()
640
638
public function testConfigureWithoutExistingDockerComposeFiles ()
641
639
{
642
640
$ dockerComposeFile = FLEX_TEST_DIR .'/compose.yaml ' ;
643
- $ defaultContent = "version: '3' \n" ;
644
641
645
642
$ this ->configurator ->configure ($ this ->recipeDb , self ::CONFIG_DB , $ this ->lock );
646
643
647
- $ this ->assertStringEqualsFile ($ dockerComposeFile , $ defaultContent . <<<'YAML'
644
+ $ this ->assertStringEqualsFile ($ dockerComposeFile , <<<'YAML'
648
645
649
646
services:
650
647
###> doctrine/doctrine-bundle ###
@@ -671,7 +668,7 @@ public function testConfigureWithoutExistingDockerComposeFiles()
671
668
);
672
669
673
670
$ this ->configurator ->unconfigure ($ this ->recipeDb , self ::CONFIG_DB , $ this ->lock );
674
- $ this ->assertEquals (trim ( $ defaultContent ) , file_get_contents ($ dockerComposeFile ));
671
+ $ this ->assertEquals ('' , file_get_contents ($ dockerComposeFile ));
675
672
}
676
673
677
674
public function testUpdate ()
@@ -691,8 +688,6 @@ public function testUpdate()
691
688
file_put_contents (
692
689
FLEX_TEST_DIR .'/docker-compose.yml ' ,
693
690
<<<EOF
694
- version: '3'
695
-
696
691
services:
697
692
###> doctrine/doctrine-bundle ###
698
693
database:
@@ -768,8 +763,6 @@ public function testUpdate()
768
763
);
769
764
770
765
$ this ->assertSame (['docker-compose.yml ' => <<<EOF
771
- version: '3'
772
-
773
766
services:
774
767
###> doctrine/doctrine-bundle ###
775
768
database:
@@ -807,8 +800,6 @@ public function testUpdate()
807
800
], $ recipeUpdate ->getOriginalFiles ());
808
801
809
802
$ this ->assertSame (['docker-compose.yml ' => <<<EOF
810
- version: '3'
811
-
812
803
services:
813
804
###> doctrine/doctrine-bundle ###
814
805
database:
0 commit comments