Changeset 10470
- Timestamp:
- 01/27/2016 04:43:44 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-classes.php
r10417 r10470 26 26 require dirname( __FILE__ ) . '/classes/class-bp-attachment-avatar.php'; 27 27 require dirname( __FILE__ ) . '/classes/class-bp-attachment-cover-image.php'; 28 require dirname( __FILE__ ) . '/classes/class-bp-email-recipient.php'; 29 require dirname( __FILE__ ) . '/classes/class-bp-email.php'; 30 require dirname( __FILE__ ) . '/classes/class-bp-email-delivery.php'; 31 require dirname( __FILE__ ) . '/classes/class-bp-phpmailer.php'; -
trunk/tests/phpunit/includes/install.php
r9836 r10470 14 14 require_once $config_file_path; 15 15 require_once $tests_dir_path . '/includes/functions.php'; 16 require_once $tests_dir_path . '/includes/mock-mailer.php'; 16 17 17 18 function _load_buddypress() { … … 49 50 } 50 51 52 function _bp_mock_mailer( $class ) { 53 return 'BP_UnitTest_Mailer'; 54 } 55 tests_add_filter( 'bp_send_email_delivery_class', '_bp_mock_mailer' ); 56 51 57 // Install BuddyPress 52 58 bp_version_updater(); -
trunk/tests/phpunit/includes/loader.php
r9819 r10470 8 8 // Bootstrap BP 9 9 require dirname( __FILE__ ) . '/../../../src/bp-loader.php'; 10 11 require_once( dirname( __FILE__ ) . '/mock-mailer.php' ); 12 function _bp_mock_mailer( $class ) { 13 return 'BP_UnitTest_Mailer'; 14 } 15 tests_add_filter( 'bp_send_email_delivery_class', '_bp_mock_mailer' ); -
trunk/tests/phpunit/testcases/core/functions.php
r10159 r10470 708 708 $this->assertTrue( empty( $not_image ) ); 709 709 } 710 711 public function test_emails_should_have_correct_link_color() { 712 $appearance = bp_email_get_appearance_settings(); 713 714 $content = '<a href="http://example.com">example</a>'; 715 $link_color = 'style="color: ' . esc_attr( $appearance['highlight_color'] ) . ';'; 716 $result = bp_email_add_link_color_to_template( $content, 'template', 'add-content' ); 717 $this->assertContains( $link_color, $result ); 718 719 $content = '<a href="http://example.com" style="display: block">example</a>'; 720 $link_color .= 'display: block'; 721 $result = bp_email_add_link_color_to_template( $content, 'template', 'add-content' ); 722 $this->assertContains( $link_color, $result ); 723 } 710 724 }
Note: See TracChangeset
for help on using the changeset viewer.