File tree Expand file tree Collapse file tree
ExpressionEngine/Tests/ExpressionEngine/Installer/Schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,6 +169,19 @@ public function list_tables($constrain = true)
169169 );
170170 }
171171
172+ /**
173+ * Ensure fresh installations store a year that is resolved at render time.
174+ *
175+ * @return void
176+ */
177+ public function testPostInstallMessageTemplateUsesDynamicCopyrightYear ()
178+ {
179+ $ template = \post_install_message_template ();
180+
181+ $ this ->assertStringContainsString ('©{current_time format="%Y"} ' , $ template );
182+ $ this ->assertDoesNotMatchRegularExpression ('/©\d{4}/ ' , $ template );
183+ }
184+
172185 private function makeSchemaFixture (MysqlSchemaDbMock $ db ): \EE_Schema
173186 {
174187 $ schema = new class extends \EE_Schema {
Original file line number Diff line number Diff line change @@ -934,7 +934,7 @@ function post_install_message_template()
934934 </div>
935935 <section class="bar">
936936 <p style="float: left;"><a href="https://expressionengine.com/" rel="external"><b>ExpressionEngine</b></a></p>
937- <p style="float: right;">©2023 <a href="https://packettide.com/" rel="external">Packet Tide</a>, LLC</p>
937+ <p style="float: right;">©{current_time format="%Y"} <a href="https://packettide.com/" rel="external">Packet Tide</a>, LLC</p>
938938 </section>
939939 </section>
940940
You can’t perform that action at this time.
0 commit comments