Changeset 11256 for trunk/tests/phpunit/testcases/core/caps.php
- Timestamp:
- 11/28/2016 10:33:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/caps.php
r11052 r11256 19 19 $can = bp_current_user_can( 'foo', bp_get_root_blog_id() ); 20 20 $cant = bp_current_user_can( 'foo', $b ); 21 remove_filter( 'user_has_cap', array( $this, 'grant_cap_foo' ), 10 , 2);21 remove_filter( 'user_has_cap', array( $this, 'grant_cap_foo' ), 10 ); 22 22 23 23 $this->assertTrue( $can ); … … 41 41 $can = bp_current_user_can( 'foo', array( 'blog_id' => bp_get_root_blog_id() ) ); 42 42 $cant = bp_current_user_can( 'foo', array( 'blog_id' => $b ) ); 43 remove_filter( 'user_has_cap', array( $this, 'grant_cap_foo' ), 10 , 2);43 remove_filter( 'user_has_cap', array( $this, 'grant_cap_foo' ), 10 ); 44 44 45 45 $this->assertTrue( $can );
Note: See TracChangeset
for help on using the changeset viewer.