wordpress-develop/tests/phpunit/tests/admin
Scott Taylor 16d98ebf73 Unit Tests: implement setUpBeforeClass() and tearDownAfterClass() on WP_UnitTestCase. Use late static binding (plus a gross fallback for PHP 5.2) to check if wpSetUpBeforeClass() or wpTearDownAfterClass() exist on the called class, and then call it and pass a static WP_UnitTest_Factory instance via Dependency Injection, if it exists.
This makes it way easier to add fixtures, and tear them down, without needing to instantiate `WP_UnitTest_Factory` in every class - removes the need to call `commit_transaction()` in each individual class.

See #30017, #33968.


git-svn-id: https://develop.svn.wordpress.org/trunk@35186 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 04:43:37 +00:00
..
includesComment.php Allow comment_exists() to match based on GMT date. 2015-09-23 18:15:39 +00:00
includesFile.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
includesListTable.php Unit Tests: implement setUpBeforeClass() and tearDownAfterClass() on WP_UnitTestCase. Use late static binding (plus a gross fallback for PHP 5.2) to check if wpSetUpBeforeClass() or wpTearDownAfterClass() exist on the called class, and then call it and pass a static WP_UnitTest_Factory instance via Dependency Injection, if it exists. 2015-10-15 04:43:37 +00:00
includesMisc.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
includesPlugin.php Update Tests_Admin_includesPlugin::test_menu_page_url() after [33858]. 2015-09-05 14:15:51 +00:00
includesPost.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
includesScreen.php Help Tabs: when returning help tabs, return them in order of priority, but also return the items in each priority in the order that they were added. 2015-09-22 03:36:27 +00:00
includesTemplate.php Administration: Add the ability to pass an array of screen IDs to add_meta_box() and remove_meta_box(). 2015-10-08 19:06:32 +00:00
includesTheme.php Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00