installMockHttp( 'hi' ); $client = Services::getInstance()->getPushNotificationServiceClient(); $client = TestingAccessWrapper::newFromObject( $client ); $payload = [ 'deviceTokens' => [ 'foo' ], 'messageType' => 'checkEchoV1' ]; $request = $client->constructRequest( 'fcm', $payload ); $this->assertInstanceOf( MWHttpRequest::class, $request ); } }