public function testAddExtras() { $config = new ComposeContainers(Platform::rootDir(), Platform::projectName()); $config->addRedis(); $config_converted = Yaml::parse($config->yaml()); $this->assertCount(4, $config_converted); $config->addSolr(); $config_converted = Yaml::parse($config->yaml()); $this->assertCount(5, $config_converted); }
public function writeDockerCompose(ComposeContainers $composeContainers) { $this->fs->dumpFile($this->projectPath . '/docker-compose.yml', $composeContainers->yaml()); }