Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2015 at 23:45 UTC
Updated:
17 Apr 2015 at 13:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amateescu commentedAnd a patch.
Comment #2
amateescu commentedWe might also want to do something like this, but then we'll lose the ability to easily see which phpunit test is not in the correct namespace :/
Comment #4
amateescu commentedFixed the patch from #1. Are there any opinions on #2?
Comment #5
berdirI think we should fix them either way, so let's commit #4.
If we want to enforce that unit tests are in \Drupal\Tests (and I think we want), then I think we should do it explicitly and find a way to make them fail, not just display a confusing error that isn't detected by the testing system :)
Verified that the error is gone and that those 4 are all those tests.
There's a 5th in my test results, but that one is really broken and a different problem( no apcu)
Comment #6
stefan.r commentedCreated follow up over at #2465029: Ensure that PHPUnit tests are in the correct namespace
Comment #7
alexpottThanks for filing the followup. Committed a5b11cc and pushed to 8.0.x. Thanks!