From d480d4e3773f5df00000ed4d4428d4daf3cf2be3 Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Fri, 5 Apr 2024 18:01:45 +0200 Subject: [PATCH] doc(migration.md) add note about prev. commands --- docs/migration.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/migration.md b/docs/migration.md index 58e273bd2..4e6620150 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -54,6 +54,27 @@ back-compatibility purposes. - "lucatume\\WPBrowser\\Command\\MonkeyCacheClear" ``` + Along with the new commands, update the existing commands to use the `lucatume\WPBrowser\Command\` namespace: + + ```diff + extensions: + commands: + - - "Codeception\\Command\\GenerateWPUnit" + - - "Codeception\\Command\\GenerateWPRestApi" + - - "Codeception\\Command\\GenerateWPRestController" + - - "Codeception\\Command\\GenerateWPRestPostTypeController" + - - "Codeception\\Command\\GenerateWPAjax" + - - "Codeception\\Command\\GenerateWPCanonical" + - - "Codeception\\Command\\GenerateWPXMLRPC" + + - "lucatume\\WPBrowser\\Command\\GenerateWPUnit" + + - "lucatume\\WPBrowser\\Command\\GenerateWPRestApi" + + - "lucatume\\WPBrowser\\Command\\GenerateWPRestController" + + - "lucatume\\WPBrowser\\Command\\GenerateWPRestPostTypeController" + + - "lucatume\\WPBrowser\\Command\\GenerateWPAjax" + + - "lucatume\\WPBrowser\\Command\\GenerateWPCanonical" + + - "lucatume\\WPBrowser\\Command\\GenerateWPXMLRPC" + ``` + 2. If your test code is loading deprecated functions, arguments, classes, files, or hooks, you need to update your test code to let the test case know using the `setExpectedDeprecated` method: ```php