Changeset 10092
- Timestamp:
- 09/06/2015 02:06:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/functions.php
r9844 r10092 604 604 * @group bp_upload_dir 605 605 */ 606 public function test_bp_upload_dir_ms() { 607 if ( ! is_multisite() ) { 608 $this->markTestSkipped( __METHOD__ . ' is a multisite-only test.' ); 606 public function test_bp_upload_dir() { 607 $expected_upload_dir = wp_upload_dir(); 608 609 if ( is_multisite() ) { 610 $b = $this->factory->blog->create(); 611 switch_to_blog( $b ); 609 612 } 610 613 611 $expected_upload_dir = wp_upload_dir();612 613 $b = $this->factory->blog->create();614 615 switch_to_blog( $b );616 617 614 $tested_upload_dir = bp_upload_dir(); 618 615 619 restore_current_blog(); 616 if ( is_multisite() ) { 617 restore_current_blog(); 618 } 620 619 621 620 $this->assertSame( $expected_upload_dir, $tested_upload_dir );
Note: See TracChangeset
for help on using the changeset viewer.