Opened 7 years ago
Closed 7 years ago
#46593 closed defect (bug) (fixed)
Fatal error when running unit tests without the build directory
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
If you create a new checkout and attempt to run PHPUnit without running grunt build first, you'll get a fatal error:
Fatal error: require_once(): Failed opening required 'build//wp-includes/class-phpmailer.php' in tests/phpunit/includes/mock-mailer.php on line 2
There should be a proper error message with a recommendation to run grunt build.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 45020: