Changeset 57706 for trunk/tests/phpunit/tests/admin/includesMisc.php
- Timestamp:
- 02/25/2024 03:25:49 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesMisc.php
r57283 r57706 33 33 */ 34 34 public function test_new_admin_email_subject_filter() { 35 // Default value 35 // Default value. 36 36 $mailer = tests_retrieve_phpmailer_instance(); 37 37 update_option_new_admin_email( 'old@example.com', 'new@example.com' ); 38 $this->assert Equals( '[Test Blog] New Admin Email Address', $mailer->get_sent()->subject );38 $this->assertSame( '[Test Blog] New Admin Email Address', $mailer->get_sent()->subject ); 39 39 40 // Filtered value 40 // Filtered value. 41 41 add_filter( 42 42 'new_admin_email_subject', … … 52 52 $mailer = tests_retrieve_phpmailer_instance(); 53 53 update_option_new_admin_email( 'old@example.com', 'new@example.com' ); 54 $this->assert Equals( 'Filtered Admin Email Address', $mailer->get_sent()->subject );54 $this->assertSame( 'Filtered Admin Email Address', $mailer->get_sent()->subject ); 55 55 } 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.