Changeset 40543 for trunk/tests/phpunit/tests/user/query.php
- Timestamp:
- 04/23/2017 09:57:31 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/user/query.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/query.php
r40530 r40543 556 556 */ 557 557 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_blog_id_on_nonms() { 558 if ( is_multisite() ) { 559 $this->markTestSkipped( __METHOD__ . ' is a non-multisite-only test.' ); 560 } 558 $this->skipWithMultisite(); 561 559 562 560 $query = new WP_User_Query( array( … … 577 575 */ 578 576 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_current_blog_id_on_ms() { 579 if ( ! is_multisite() ) { 580 $this->markTestSkipped( __METHOD__ . ' is a multisite-only test.' ); 581 } 577 $this->skipWithoutMultisite(); 582 578 583 579 $query = new WP_User_Query( array( … … 598 594 */ 599 595 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_different_blog_id_on_ms_when_fields_all_with_meta() { 600 if ( ! is_multisite() ) { 601 $this->markTestSkipped( __METHOD__ . ' is a multisite-only test.' ); 602 } 596 $this->skipWithoutMultisite(); 603 597 604 598 $b = self::factory()->blog->create(); … … 625 619 */ 626 620 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_different_blog_id_on_ms_when_fields_all() { 627 if ( ! is_multisite() ) { 628 $this->markTestSkipped( __METHOD__ . ' is a multisite-only test.' ); 629 } 621 $this->skipWithoutMultisite(); 630 622 631 623 $b = self::factory()->blog->create(); … … 651 643 */ 652 644 public function test_who_authors() { 653 if ( ! is_multisite() ) { 654 $this->markTestSkipped( __METHOD__ . ' requires multisite.' ); 655 } 645 $this->skipWithoutMultisite(); 656 646 657 647 $b = self::factory()->blog->create(); … … 678 668 */ 679 669 public function test_who_authors_should_work_alongside_meta_query() { 680 if ( ! is_multisite() ) { 681 $this->markTestSkipped( __METHOD__ . ' requires multisite.' ); 682 } 670 $this->skipWithoutMultisite(); 683 671 684 672 $b = self::factory()->blog->create(); … … 714 702 */ 715 703 public function test_who_authors_should_work_alongside_meta_params() { 716 if ( ! is_multisite() ) { 717 $this->markTestSkipped( __METHOD__ . ' requires multisite.' ); 718 } 704 $this->skipWithoutMultisite(); 719 705 720 706 $b = self::factory()->blog->create(); … … 808 794 */ 809 795 public function test_has_published_posts_should_respect_blog_id() { 810 if ( ! is_multisite() ) { 811 $this->markTestSkipped( __METHOD__ . ' requires multisite.' ); 812 } 796 $this->skipWithoutMultisite(); 813 797 814 798 $blogs = self::factory()->blog->create_many( 2 ); … … 1376 1360 */ 1377 1361 public function test_blog_id_should_restrict_by_blog_without_requiring_a_named_role() { 1378 if ( ! is_multisite() ) { 1379 $this->markTestSkipped( __METHOD__ . ' requires multisite.' ); 1380 } 1362 $this->skipWithoutMultisite(); 1381 1363 1382 1364 $sites = self::factory()->blog->create_many( 2 ); … … 1399 1381 */ 1400 1382 public function test_calling_prepare_query_a_second_time_should_not_add_another_cap_query_on_multisite() { 1401 if ( ! is_multisite() ) { 1402 $this->markTestSkipped( __METHOD__ . ' requires Multisite.' ); 1403 } 1383 $this->skipWithoutMultisite(); 1404 1384 1405 1385 $site_id = get_current_blog_id();
Note: See TracChangeset
for help on using the changeset viewer.