backdrop-contrib / bee

:bee: Bee is a command line utility for Backdrop CMS. It includes commands that allow developers to interact with Backdrop sites.
GNU General Public License v2.0
16 stars 22 forks source link

Tests failing due to line breaks appearing in messages #413

Closed yorkshire-pudding closed 2 months ago

yorkshire-pudding commented 2 months ago

In #412 which is the PR for #411, we had failing tests due to the line breaks being in the output messages that the tests were comparing against.

Roles Commands
 ✘ Role add permission command works
   │
   │ Failed asserting that '\n
   │  ✔  The 'example' role has the following permissions granted: 'administer block \n
   │     s'                                                                          \n
   │ \n
   │ ' contains "The 'example' role has the following permissions granted: 'administer blocks'".
   │
   │ /app/tests/backdrop/RolesCommandsTest.php:42
   │
 ✘ Role remove permission command works
   │
   │ Failed asserting that '\n
   │  ✘  The 'administer comment settings' permission has not be granted! \n
   │ \n
   │ ' contains "The 'example' role has the following permissions granted:".
   │
   │ /app/tests/backdrop/RolesCommandsTest.php:52
   │

The tests passed locally so something is happening in the virtual terminal in the GitHub Action. A bit of research suggests the width is set to be 80 characters, so increasing this might be a sticking plaster for this issue.