Changeset 54090 for trunk/tests/phpunit/tests/general/template.php
- Timestamp:
- 09/06/2022 10:09:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/template.php
r54088 r54090 105 105 */ 106 106 public function test_has_site_icon_returns_true_when_called_for_other_site_with_site_icon_set() { 107 $blog_id = $this->factory->blog->create();107 $blog_id = self::factory()->blog->create(); 108 108 switch_to_blog( $blog_id ); 109 109 $this->set_site_icon(); … … 120 120 */ 121 121 public function test_has_site_icon_returns_false_when_called_for_other_site_without_site_icon_set() { 122 $blog_id = $this->factory->blog->create();122 $blog_id = self::factory()->blog->create(); 123 123 124 124 $this->assertFalse( has_site_icon( $blog_id ) ); … … 299 299 */ 300 300 public function test_has_custom_logo_returns_true_when_called_for_other_site_with_custom_logo_set() { 301 $blog_id = $this->factory->blog->create();301 $blog_id = self::factory()->blog->create(); 302 302 switch_to_blog( $blog_id ); 303 303 $this->set_custom_logo(); … … 314 314 */ 315 315 public function test_has_custom_logo_returns_false_when_called_for_other_site_without_custom_logo_set() { 316 $blog_id = $this->factory->blog->create();316 $blog_id = self::factory()->blog->create(); 317 317 318 318 $this->assertFalse( has_custom_logo( $blog_id ) ); … … 344 344 */ 345 345 public function test_get_custom_logo_returns_logo_when_called_for_other_site_with_custom_logo_set() { 346 $blog_id = $this->factory->blog->create();346 $blog_id = self::factory()->blog->create(); 347 347 switch_to_blog( $blog_id ); 348 348 … … 467 467 */ 468 468 public function test_get_site_icon_url_preserves_switched_state() { 469 $blog_id = $this->factory->blog->create();469 $blog_id = self::factory()->blog->create(); 470 470 switch_to_blog( $blog_id ); 471 471 … … 487 487 */ 488 488 public function test_has_custom_logo_preserves_switched_state() { 489 $blog_id = $this->factory->blog->create();489 $blog_id = self::factory()->blog->create(); 490 490 switch_to_blog( $blog_id ); 491 491 … … 507 507 */ 508 508 public function test_get_custom_logo_preserves_switched_state() { 509 $blog_id = $this->factory->blog->create();509 $blog_id = self::factory()->blog->create(); 510 510 switch_to_blog( $blog_id ); 511 511
Note: See TracChangeset
for help on using the changeset viewer.