getActionFactory(); $context = RequestContext::getMain(); $article = Article::newFromTitle( Title::makeTitle( NS_MAIN, 'ActionFactoryServiceWiringTest' ), $context ); $actionSpecs = ( new ReflectionClassConstant( ActionFactory::class, 'CORE_ACTIONS' ) )->getValue(); foreach ( $actionSpecs as $action => $_ ) { $this->assertInstanceOf( Action::class, $actionFactory->getAction( $action, $article, $context ) ); } } }