Verified Commit c70620dc authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3089907 by sahil.goyal, quietone, tbsiqueira, joachim, smustgrave,...

Issue #3089907 by sahil.goyal, quietone, tbsiqueira, joachim, smustgrave, alexpott, Sutharsan: standardize docs on how to use the 4 types of test base
parent eedde808
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -12,6 +12,10 @@
/**
 * Runs a browser test using a driver that supports JavaScript.
 *
 * Module tests extending WebDriverTestBase must exist in the
 * Drupal\Tests\your_module\FunctionalJavascript namespace and live in the
 * modules/your_module/tests/src/FunctionalJavascript directory.
 *
 * Base class for testing browser interaction implemented in JavaScript.
 *
 * @ingroup testing
+4 −0
Original line number Diff line number Diff line
@@ -43,6 +43,10 @@
/**
 * Base class for functional integration tests.
 *
 * Module tests extending KernelTestBase must exist in the
 * Drupal\Tests\your_module\Kernel namespace and live in the
 * modules/your_module/tests/src/Kernel directory.
 *
 * This base class should be useful for testing some types of integrations which
 * don't require the overhead of a fully-installed Drupal instance, but which
 * have many dependencies on parts of Drupal which can't or shouldn't be mocked.
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
/**
 * Provides a test case for functional Drupal tests.
 *
 * Tests extending BrowserTestBase must exist in the
 * Module tests extending BrowserTestBase must exist in the
 * Drupal\Tests\your_module\Functional namespace and live in the
 * modules/your_module/tests/src/Functional directory.
 *
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,10 @@
/**
 * Provides a base class and helpers for Drupal unit tests.
 *
 * Module tests extending BrowserTestBase must exist in the
 * Drupal\Tests\your_module\Functional namespace and live in the
 * modules/your_module/tests/src/Functional directory.
 *
 * Using Symfony's dump() function in Unit tests will produce output on the
 * command line.
 *