https://www.playframework.com/documentation/2.6.x/ScalaTestingWithScalaTest#Unit-Testing-Controllers
The current documentation examples are using extends Controller which is a deprecated API. It should instead use extends BaseController or extends AbstractController. The test can later use Helpers.stubControllerComponents.