The doc page generated from core.api.php says that unit tests should be placed in yourmodule/tests/src. However they need to be in a Unit subdirectory of that directory.

CommentFileSizeAuthor
#2 2666552-2-phpunit-location.patch826 bytesmikeker

Comments

mikeker created an issue. See original summary.

mikeker’s picture

Status: Active » Needs review
StatusFileSize
new826 bytes
mikeker’s picture

Issue summary: View changes
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

+1
In general it would be nice to also have an issue to point to the new kernel test base

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 25d041a and pushed to 8.0.x and 8.1.x. Thanks!

  • alexpott committed 66d2d4a on 8.1.x
    Issue #2666552 by mikeker: Incorrect path for unit tests in core.api.php
    

  • alexpott committed 25d041a on 8.0.x
    Issue #2666552 by mikeker: Incorrect path for unit tests in core.api.php...
mikeker’s picture

That was the fastest core issue fix I've ever seen! :)

In general it would be nice to also have an issue to point to the new kernel test base

Done: #2667172: core.api.php links to the old (deprecated) KernelTestBase.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.