Problem/Motivation
Class docs for BrowserTestBase helpfully say:
* Tests extending BrowserTestBase must exist in the
* Drupal\Tests\yourmodule\Functional namespace and live in the
* modules/yourmodule/tests/src/Functional directory.
The base classes for the other 3 types of test should say something similar: Drupal\Tests\UnitTestCase, Drupal\KernelTests\KernelTestBase, Drupal\FunctionalJavascriptTests\WebDriverTestBase.
Steps to reproduce
Proposed resolution
The base classes for the other 3 types of test should say something similar: Drupal\Tests\UnitTestCase, Drupal\KernelTests\KernelTestBase, Drupal\FunctionalJavascriptTests\WebDriverTestBase.
Remaining tasks
Add followup to provide details of where core tests, not in core modules, should live.
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
tbsiqueiraI'm at #Amterdam2019 and I am working on this now. #DrupalCon2019
Comment #3
tbsiqueiraPlease find patch attached
Comment #4
tbsiqueiraComment #5
sutharsan commented@tbsiqueira, Thanks for the work. The code looks good, code style Ok, text content Ok. Nicely consistent.
Comment #6
tbsiqueira@Sutharsan, than you for the review! Happy to help.
Comment #7
alexpottThis comments added here are true for contrib and custom modules & themes but they are not true for core. The documentation we're adding here needs to reflect that it is for contrib and custom modules & themes.
Comment #8
joachim commentedPresumably they're true for core modules and themes, but not for tests for core lib?
We should explain where they need to go for core lib tests too -- core should be documenting itself!
Comment #14
sahil.goyal commentedThe patch provided at #3 looks great but as version changed the patch is no longer compatible with the 9.4.x so i reroll the patch to make it applied for newer version as well. otherwise added comments are look good.
Comment #15
sahil.goyal commentedFixing the CCF at above.
Comment #16
sahil.goyal commentedComment #17
gaurav-mathur commentedComment #18
gaurav-mathur commentedVerified and tested patch#15 on Drupal 9.5.x-dev and do not see any error or warnings.
Patch applied successfully.
Thank You.
Comment #19
joachim commentedWe need to move this to 10.1, but it should hopefully still apply.
Comment #20
smustgrave commentedFrom what I can tell
Still needs to be addressed.
Comment #24
quietone commentedLet's move that to a follow up issue so we can make this improvement.
I have convert to an MR and made a slight change to indicate this is for modules.
Comment #25
smustgrave commentedOpened #3462973: Provide details of where core tests, not in core modules, should live.
Comment #28
nod_Committed c70620d and pushed to 11.x. Thanks!