- Timestamp:
- 08/03/2022 12:18:22 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/wpGetDocumentTitle.php
r52010 r53815 61 61 $this->go_to( '/' ); 62 62 63 $this->expectOutputString( sprintf( "<title>%s</title>\n", $this->blog_name ) ); 64 _wp_render_title_tag(); 65 } 66 67 /** 68 * @ticket 6479 69 */ 70 public function test__wp_render_title_tag_with_blog_description() { 71 $this->go_to( '/' ); 72 73 update_option( 'blogdescription', 'A blog description' ); 74 63 75 $this->expectOutputString( sprintf( "<title>%s – %s</title>\n", $this->blog_name, get_option( 'blogdescription' ) ) ); 64 76 _wp_render_title_tag(); … … 100 112 101 113 $this->go_to( '/' ); 102 $this->assertSame( sprintf( '%s – Just another WordPress site', $this->blog_name ), wp_get_document_title() );114 $this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() ); 103 115 104 116 update_option( 'show_on_front', 'posts' ); 105 117 106 118 $this->go_to( '/' ); 107 $this->assertSame( sprintf( '%s – Just another WordPress site', $this->blog_name ), wp_get_document_title() );119 $this->assertSame( sprintf( '%s', $this->blog_name ), wp_get_document_title() ); 108 120 } 109 121 … … 136 148 add_filter( 'document_title_parts', array( $this, 'paged_title_parts' ) ); 137 149 138 $this->assertSame( sprintf( '%s – Page 4 – Just another WordPress site', $this->blog_name ), wp_get_document_title() );150 $this->assertSame( sprintf( '%s – Page 4', $this->blog_name ), wp_get_document_title() ); 139 151 } 140 152
Note: See TracChangeset
for help on using the changeset viewer.