loadFixtures([ LoadBaseData::class ]); $this->modelService = new ModelService($this->em); $this->setService = new SetService($this->em); $this->filesystem->write('models/1.stl',file_get_contents(__DIR__ . '/../Fixtures/models/1.stl')); $this->zipService = new ZipService($this->filesystem,$this->modelService,$this->setService); } public function tearDown() { $this->filesystem->delete('models/1.stl'); } public function testModelZip() { $model = $this->modelService->find(1); $path = $this->zipService->createFromModel($model, 'modelzip'); $this->assertFileExists($path); } public function testSetZip() { $set = $this->setService->find('8049-1'); $path = $this->zipService->createFromSet($set, 'setzip'); $this->assertFileExists($path); } }