Changeset 7353 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 11/14/2025 07:39:41 PM (7 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/includes/testcase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r6573 r7353 8 8 * Fake WP mail globals, to avoid errors 9 9 */ 10 public static function setUpBeforeClass() {10 public static function setUpBeforeClass(): void { 11 11 add_filter( 'wp_mail', array( 'BBP_UnitTestCase', 'setUp_wp_mail' ) ); 12 12 add_filter( 'wp_mail_from', array( 'BBP_UnitTestCase', 'tearDown_wp_mail' ) ); 13 13 } 14 14 15 public function setUp() {15 public function setUp(): void { 16 16 parent::setUp(); 17 17 … … 31 31 } 32 32 33 public function tearDown() {33 public function tearDown(): void { 34 34 global $wpdb; 35 35 … … 57 57 } 58 58 59 function assertPreConditions() {59 function assertPreConditions(): void { 60 60 parent::assertPreConditions(); 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.