Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify defining test namespaces #733

Closed
mglaman opened this issue Mar 4, 2024 · 1 comment
Closed

Simplify defining test namespaces #733

mglaman opened this issue Mar 4, 2024 · 1 comment

Comments

@mglaman
Copy link
Owner

mglaman commented Mar 4, 2024

See https://git.drupalcode.org/project/drupal/-/commit/d39f152b8ba6141d63d194a1be84218046b6a2e9

@mglaman
Copy link
Owner Author

mglaman commented Mar 20, 2024

This is already done, only Drupal core has a verbose namespace registration

            // Extensions can have a \Drupal\Tests\extension namespace for test cases, traits, and other classes such
            // as those that extend \Drupal\TestSite\TestSetupInterface.
            // @see drupal_phpunit_get_extension_namespaces()
            $module_test_dir = $module_dir . '/tests/src';
            if (is_dir($module_test_dir)) {
                $this->namespaces["Drupal\\Tests\\$module_name"] = $module_test_dir;
            }

@mglaman mglaman closed this as completed Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant