From f9f42f670b7d6861d35daf8efcc89e387552f5db Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Mon, 13 Jul 2015 18:32:58 +0200
Subject: [PATCH] Fixes #8188 Better explain when some ApiToTest in
 SystemTestCase are not going to be tested

---
 tests/PHPUnit/Framework/TestRequest/Collection.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/PHPUnit/Framework/TestRequest/Collection.php b/tests/PHPUnit/Framework/TestRequest/Collection.php
index 219a68f83a..7034835d7e 100644
--- a/tests/PHPUnit/Framework/TestRequest/Collection.php
+++ b/tests/PHPUnit/Framework/TestRequest/Collection.php
@@ -157,7 +157,9 @@ class Collection
             }, $requestUrls);
             throw new Exception("Only generated $countUrls API calls to test but was expecting more for this test.\n" .
                     "Want to test APIs: " . implode(", ", $this->apiToCall) . ")\n" .
-                    "But only generated these URLs: \n" . implode("\n", $requestUrls) . ")\n"
+                    "But only generated these URLs: \n" . implode("\n", $requestUrls) . ")\n" .
+                    "Note: SystemTestCase is meant to test API methods where the method name starts with get* \n" .
+                    "If you want to test other API methods such as add* or update* or any other, please create an IntegrationTestCase instead (via `./console generate:test`)\n"
             );
         }
     }
-- 
GitLab