In this guide they indicate that to perform this test you have to rewire and connect several ethernet cables between the ports, in our case we don't have 8 ethernet ports to connect them together, I would like to know if this rewiring is necessary to perform this test.
The forti 300D has 2 MGMT ports, 4 ethernet ports and 4 sfp ports.
For the loopback test you should rewire it as instructed, but if you're only after testing a specific port, it's fine to connect just that port. Make sure to connect it to the port that the test tells you to use, and then ignore the failed results for other ports. (expected since you didn't wire them for the loopback test)
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.