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