This has been mentioned in other tickets (e.g. here, here, and here), but ship wings do not appear to use opportunity fire, despite the feature having been added according to the Alpha 4 changelog. Individual ship wings will pick a target wing or planetary defense structure and only fire at it, they will rarely if ever fire at other nearby wings even if the primary target is out of range (which is how I would interpret "opportunity fire").