Changeset 64832
- Timestamp:
- 10/27/2026 07:51:14 PM (33 hours ago)
- Location:
- trunk/tests/phpunit/tests/comment
- Files:
-
- 3 edited
-
commentsTemplate.php (modified) (1 diff)
-
metaCache.php (modified) (1 diff)
-
wpListComments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/commentsTemplate.php
r64444 r64832 11 11 12 12 /** 13 * Original stylesheet. 14 * 15 * @var string 16 */ 17 protected $original_stylesheet; 18 19 /** 13 20 * Performs setup tasks for every test. 14 21 */ 15 22 public function set_up() { 16 23 parent::set_up(); 24 $this->original_stylesheet = get_stylesheet(); 17 25 switch_theme( 'default' ); 26 } 27 28 /** 29 * Cleans up after every test. 30 */ 31 public function tear_down() { 32 if ( get_stylesheet() !== $this->original_stylesheet ) { 33 switch_theme( $this->original_stylesheet ); 34 } 35 parent::tear_down(); 18 36 } 19 37 -
trunk/tests/phpunit/tests/comment/metaCache.php
r60251 r64832 8 8 9 9 /** 10 * Original stylesheet. 11 * 12 * @var string 13 */ 14 protected $original_stylesheet; 15 16 /** 10 17 * Performs setup tasks for every test. 11 18 */ 12 19 public function set_up() { 13 20 parent::set_up(); 21 $this->original_stylesheet = get_stylesheet(); 14 22 switch_theme( 'default' ); 23 } 24 25 /** 26 * Cleans up after every test. 27 */ 28 public function tear_down() { 29 if ( get_stylesheet() !== $this->original_stylesheet ) { 30 switch_theme( $this->original_stylesheet ); 31 } 32 parent::tear_down(); 15 33 } 16 34 -
trunk/tests/phpunit/tests/comment/wpListComments.php
r56635 r64832 9 9 10 10 /** 11 * Original stylesheet. 12 * 13 * @var string 14 */ 15 protected $original_stylesheet; 16 17 /** 11 18 * Performs setup tasks for every test. 12 19 */ 13 20 public function set_up() { 14 21 parent::set_up(); 22 $this->original_stylesheet = get_stylesheet(); 15 23 switch_theme( 'default' ); 24 } 25 26 /** 27 * Cleans up after every test. 28 */ 29 public function tear_down() { 30 if ( get_stylesheet() !== $this->original_stylesheet ) { 31 switch_theme( $this->original_stylesheet ); 32 } 33 parent::tear_down(); 16 34 } 17 35
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)