Changeset 7332
- Timestamp:
- 08/01/2013 12:02:10 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r7322 r7332 2581 2581 $rmethod = $this->class_reflection->getMethod( $method ); 2582 2582 if ( isset( $rmethod->class ) && $this->class_name === $rmethod->class ) { 2583 $callback = array( $this ->class_name, $method );2583 $callback = array( $this, $method ); 2584 2584 } 2585 2585 … … 2588 2588 $rfallback_method = $this->class_reflection->getMethod( $fallback_method ); 2589 2589 if ( isset( $rfallback_method->class ) && $this->class_name === $rfallback_method->class ) { 2590 $callback = array( $this ->class_name, $fallback_method );2590 $callback = array( $this, $fallback_method ); 2591 2591 } 2592 2592 } -
trunk/tests/testcases/groups/class-bp-group-extension.php
r7293 r7332 63 63 64 64 $fallback = array( 65 'screen_callback' => array( $ class_name, 'settings_screen' ),66 'screen_save_callback' => array( $ class_name, 'settings_screen_save' ),65 'screen_callback' => array( $e, 'settings_screen' ), 66 'screen_save_callback' => array( $e, 'settings_screen_save' ), 67 67 ); 68 68 $fallbacks = array( … … 92 92 93 93 $fallback = array( 94 'screen_callback' => array( $ class_name, 'settings_screen' ),95 'screen_save_callback' => array( $ class_name, 'settings_screen_save' ),94 'screen_callback' => array( $e, 'settings_screen' ), 95 'screen_save_callback' => array( $e, 'settings_screen_save' ), 96 96 ); 97 97 $expected = array( 98 98 'create' => $fallback, 99 99 'edit' => array( 100 'screen_callback' => array( $ class_name, 'edit_screen' ),101 'screen_save_callback' => array( $ class_name, 'edit_screen_save' ),100 'screen_callback' => array( $e, 'edit_screen' ), 101 'screen_save_callback' => array( $e, 'edit_screen_save' ), 102 102 ), 103 103 'admin' => $fallback, … … 204 204 $e->_register(); 205 205 206 $this->assertEquals( array( $ class_name, 'settings_screen' ), $e->screens['create']['screen_callback'] );207 $this->assertEquals( array( $ class_name, 'settings_screen_save' ), $e->screens['create']['screen_save_callback'] );208 $this->assertEquals( array( $ class_name, 'settings_screen' ), $e->screens['admin']['screen_callback'] );209 $this->assertEquals( array( $ class_name, 'settings_screen_save' ), $e->screens['admin']['screen_save_callback'] );210 $this->assertEquals( array( $ class_name, 'edit_screen' ), $e->screens['edit']['screen_callback'] );211 $this->assertEquals( array( $ class_name, 'edit_screen_save' ), $e->screens['edit']['screen_save_callback'] );206 $this->assertEquals( array( $e, 'settings_screen' ), $e->screens['create']['screen_callback'] ); 207 $this->assertEquals( array( $e, 'settings_screen_save' ), $e->screens['create']['screen_save_callback'] ); 208 $this->assertEquals( array( $e, 'settings_screen' ), $e->screens['admin']['screen_callback'] ); 209 $this->assertEquals( array( $e, 'settings_screen_save' ), $e->screens['admin']['screen_save_callback'] ); 210 $this->assertEquals( array( $e, 'edit_screen' ), $e->screens['edit']['screen_callback'] ); 211 $this->assertEquals( array( $e, 'edit_screen_save' ), $e->screens['edit']['screen_save_callback'] ); 212 212 } 213 213
Note: See TracChangeset
for help on using the changeset viewer.