- Timestamp:
- 03/16/2015 04:01:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-media-extractor.php
r9619 r9620 52 52 } 53 53 54 public function setUp() {55 parent::setUp();56 57 $this->factory->user->create( array( 'user_login' => 'paulgibbs' ) );58 }59 60 public function tearDown() {61 parent::tearDown();62 63 $this->remove_added_uploads();64 }65 66 54 67 55 /** … … 156 144 157 145 public function test_extract_multiple_media_types_from_content() { 146 $this->factory->user->create( array( 'user_login' => 'paulgibbs' ) ); 158 147 $media = self::$media_extractor->extract( self::$richtext, BP_Media_Extractor::LINKS | BP_Media_Extractor::MENTIONS ); 159 148 … … 201 190 202 191 public function test_extract_mentions_from_content_with_activity_enabled() { 192 $this->factory->user->create( array( 'user_login' => 'paulgibbs' ) ); 203 193 $media = self::$media_extractor->extract( self::$richtext, BP_Media_Extractor::MENTIONS ); 204 194 … … 208 198 209 199 public function test_extract_mentions_from_content_with_activity_disabled() { 200 $this->factory->user->create( array( 'user_login' => 'paulgibbs' ) ); 210 201 $was_activity_enabled = false; 211 202
Note: See TracChangeset
for help on using the changeset viewer.