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