MenuXmlTest - Improve debug output. Use richer helpers.
authorTim Otten <totten@civicrm.org>
Wed, 8 Nov 2023 23:37:36 +0000 (15:37 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 9 Nov 2023 00:21:14 +0000 (16:21 -0800)
commit0b499f828b3cbbb8069eab214fa020bf8af1657d
treedd5dbbf528b26ac1f27cdf3a472d565964d9e439
parent63a020844bad84b3181ea2e2932ff8a47a9a3598
MenuXmlTest - Improve debug output. Use richer helpers.

In automated test-runs, the e2e test for `mixin/menu-xml@1` (`MenuXmlTest`) has been failing sporadically.
The failure always involves one of the HTTP sub-requests, but it's never clear what actually happened
in the HTTP sub-request. This patch improves debug info.

Before
-------

Send HTTP sub-request with simple primitives (`cv` + `file_get_contents`).  No detailed information about the failed request.

After
-----

Send HTTP sub-request with `HttpTestTrait` (`guzzle`). Use rich assertions that log more detailed information.
mixin/menu-xml@1/example/tests/mixin/MenuXmlTest.php