['image' => 'bar']]; expect(fetchVolumes($configuration))->toBe([]); }); }); describe('from a version 2 configuration', function() { it('should fetch volumes from the dedicated section', function() { $configuration = ['version' => 2, 'volumes' => ['foo' => [], 'bar' => []]]; expect(fetchVolumes($configuration))->toBe($configuration['volumes']); }); }); });