[wp-trac] [WordPress Trac] #30860: Add unit tests for plugin.php

WordPress Trac noreply at wordpress.org
Wed Dec 31 14:40:17 UTC 2014


#30860: Add unit tests for plugin.php
------------------------------+---------------------------
 Reporter:  sgrant            |       Owner:  boonebgorges
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  4.2
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+---------------------------

Comment (by valendesigns):

 Replying to [comment:13 boonebgorges]:
 > Yup, that's the idea, though you can probably simplify somewhat - since
 in the case of drop-ins we have a whitelist of file names, just do
 `foreach ... if ( file_exists() ) rename ...`.

 Good call, that really tidies things up.

 So I've figured out the issue. If you have a symbolic link to `db.php` as
 one of your drop-in, `Tests_DB:test_bail` fails. However, everything works
 as expected and all tests pass when it's a real file.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30860#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list