We need some tests for this. We don't need to test Drupal core. We need to render the block in a Functional? test and review that is rendered properly.
Issue fork whatsapp-3259603
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3259603-add-a-basic
changes, plain diff MR !5
Comments
Comment #2
pcambraComment #3
pcambra- Test 1: Functional test. Visits the '/admin/config/services/whatsapp' url, checks that the form is correct and the value is saved as expected. Needs to also verify that users without the right permissions can access the page.
- Test 2: Kernel test. Places the whatsapp block in a region of the homepage (or a page created for this test in a routing file of a whatsapp_test), renders the block and checks if the javascript tag is injected as expected.
Comment #6
beagaliana commentedComment #14
beagaliana commented