From 4a1d57b5a8eb1808d5a8a11332f802a5900076f9 Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Tue, 5 Mar 2024 07:40:18 +0100 Subject: [PATCH] Remove whenGet() from test_package.cpp --- .../all/test_package/test_package.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/recipes/mocknetworkaccessmanager/all/test_package/test_package.cpp b/recipes/mocknetworkaccessmanager/all/test_package/test_package.cpp index ff153fcd4603a..0bf716a725621 100644 --- a/recipes/mocknetworkaccessmanager/all/test_package/test_package.cpp +++ b/recipes/mocknetworkaccessmanager/all/test_package/test_package.cpp @@ -3,10 +3,5 @@ int main(void) { MockNetworkAccess::Manager< QNetworkAccessManager > mnam; - mnam.whenGet( QUrl( "http://example.com/hello" ) ) - .has( MockNetworkAccess::Predicates::HeaderMatching( QNetworkRequest::UserAgentHeader, - QRegularExpression( ".*MyNetworkClient/.*" ) ) ) - .reply().withBody( QJsonDocument::fromJson( "{\"hello\":\"world\"}" ) ); - return 0; }