workshop-drupal-automated-testing icon indicating copy to clipboard operation
workshop-drupal-automated-testing copied to clipboard

The instructions for the workshop delivered at DrupalCamp London 2020.

Results 9 workshop-drupal-automated-testing issues
Sort by recently updated
recently updated
newest added

After mocking the node the unit test for the `Post` entity still fails. This is because the mocked item isn't passed into the constructor. For clarity the code change to...

The step states to change `ArticleRepository` to: ```diff ... public function __invoke(): array { - return []; ... + return [ + '#markup' => render($build), + ]; } ``` This...

I'm following along using ddev. At 13.6 I got the following error: ``` # ddev exec ../vendor/bin/phpunit ./modules/custom/my_module PHP Fatal error: Uncaught Error: Class 'Drupal\Tests\BrowserTestBase' not found in /var/www/html/web/modules/custom/my_module/tests/src/Functional/FrontPageTest.php:8 ```...

Hi!, I'm learning Drupal TDD and trying to follow this repo steps. I've setup and following your steps, I just got an error in the step 1f. Here is the...

- https://www.drupal.org/docs/8/testing - https://www.drupal.org/docs/7/testing - https://drupalize.me/series/automated-testing-drupal-8 - https://drupalize.me/series/testing-drupal-7-simpletest - https://symfonycasts.com/screencast/phpunit - https://course.testdrivenlaravel.com - https://confidentlaravel.com - https://phpunit.de - http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd - http://www.javiersaldana.com/articles/tech/refactoring-the-three-laws-of-tdd - https://www.youtube.com/watch?v=AoIfc5NwRks (The Three Laws of TDD talk by Uncle...

Look into using https://www.npmjs.com/package/markdownlint-cli as a replacement for Prettier, excluding hard line wrapping.

https://github.com/opdavies/workshop-drupal-automated-testing-code

Run `ddev ssh` and run tests within the container, using `http://localhost` in phpunit.xml. Probably the same for Docksal and others too.