I made a module with .inc file witch contains a class. When I made an object in test case the system didn't find my class. (When I made an object in .module it worked well)

How reproduce this bug:

1. Install a fersh 8.x drupal with minimal profile.
2. put the test module in the sites/all/modules directory.
3. Enable core testing and test module.
4. Run test testcases.
You will see a following:
test pass
5. delete second line (new foo()) in the .module file
You will see the problem:
test failed

CommentFileSizeAuthor
Kijelölés_022.png25.21 KBpp
Kijelölés_021.png107.79 KBpp
test.tar_.gz498 bytespp

Comments

damien tournoud’s picture

Category: bug » support
Status: Active » Fixed

You want to enable the module you want to test, by passing it as an argument to parent::setUp().

pp’s picture

Thank you!

Status: Fixed » Closed (fixed)

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