Skip to content
Extraits de code Groupes Projets
Valider f9f42f67 rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixes #8188 Better explain when some ApiToTest in SystemTestCase are not going to be tested

parent 77e204cc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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"
);
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter