Changeset 40543 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 04/23/2017 09:57:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r40542 r40543 195 195 if ( false !== $travis_pull_request && 'master' !== $travis_branch ) { 196 196 $this->markTestSkipped( 'For automated test runs, this test is only run on trunk/master' ); 197 } 198 } 199 200 /** 201 * Allow tests to be skipped when Multisite is not in use. 202 * 203 * Use in conjunction with the ms-required group. 204 */ 205 public function skipWithoutMultisite() { 206 if ( ! is_multisite() ) { 207 $this->markTestSkipped( 'Test only runs on Multisite' ); 208 } 209 } 210 211 /** 212 * Allow tests to be skipped when Multisite is in use. 213 * 214 * Use in conjunction with the ms-excluded group. 215 */ 216 public function skipWithMultisite() { 217 if ( is_multisite() ) { 218 $this->markTestSkipped( 'Test does not run on Multisite' ); 197 219 } 198 220 }
Note: See TracChangeset
for help on using the changeset viewer.