Changeset 52235 for trunk/tests/phpunit/tests/rest-api/rest-server.php
- Timestamp:
- 11/23/2021 06:55:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-server.php
r52080 r52235 34 34 35 35 parent::tear_down(); 36 } 37 38 /** 39 * Called before setting up all tests. 40 */ 41 public static function set_up_before_class() { 42 parent::set_up_before_class(); 43 44 // Require files that need to load once. 45 require_once DIR_TESTROOT . '/includes/mock-invokable.php'; 36 46 } 37 47 … … 1631 1641 */ 1632 1642 public function test_callbacks_are_not_executed_if_request_validation_fails() { 1633 $callback = $this->createPartialMock( ' stdClass', array( '__invoke' ) );1643 $callback = $this->createPartialMock( 'Mock_Invokable', array( '__invoke' ) ); 1634 1644 $callback->expects( self::never() )->method( '__invoke' ); 1635 $permission_callback = $this->createPartialMock( ' stdClass', array( '__invoke' ) );1645 $permission_callback = $this->createPartialMock( 'Mock_Invokable', array( '__invoke' ) ); 1636 1646 $permission_callback->expects( self::never() )->method( '__invoke' ); 1637 1647
Note: See TracChangeset
for help on using the changeset viewer.