Changeset 10505
- Timestamp:
- 02/03/2016 11:35:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-email.php
r10503 r10505 35 35 $email = new BP_Email( 'activity-at-message' ); 36 36 37 $email->set_subject( $message ) ;37 $email->set_subject( $message )->set_tokens( array( 'poster.name' => 'example' ) ); 38 38 $this->assertSame( $message, $email->get_subject() ); 39 39 } … … 95 95 $email = new BP_Email( 'activity-at-message' ); 96 96 $email->set_from( 'test1@example.com' )->set_to( 'test2@example.com' )->set_subject( 'testing' ); 97 $email->set_content_html( 'testing' ) ;97 $email->set_content_html( 'testing' )->set_tokens( array( 'poster.name' => 'example' ) ); 98 98 99 99 $this->assertTrue( $email->validate() ); … … 144 144 $email = new BP_Email( 'activity-at-message' ); 145 145 $email->set_from( 'test1@example.com' )->set_to( 'test2@example.com' )->set_subject( 'testing' ); // Content 146 $email->set_tokens( array( 'poster.name' => 'example' ) ); 146 147 $result = $email->validate(); 147 148 … … 153 154 $email = new BP_Email( 'activity-at-message' ); 154 155 $email->set_from( 'test1@example.com' )->set_to( 'test2@example.com' )->set_subject( 'testing' ); 155 $email->set_content_html( 'testing' )->set_t emplate( '' );156 $email->set_content_html( 'testing' )->set_tokens( array( 'poster.name' => 'example' ) )->set_template( '' ); 156 157 $result = $email->validate(); 157 158
Note: See TracChangeset
for help on using the changeset viewer.