This repository was archived by the owner on Dec 27, 2022. It is now read-only.
File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -921,7 +921,7 @@ public function test_add_post_edit_and_exit_links() {
921
921
/**
922
922
* Test render templates.
923
923
*
924
- * @see Customize_Snapshot_Manager::render_templates()
924
+ * @covers Customize_Snapshot_Manager::render_templates()
925
925
*/
926
926
public function test_render_templates () {
927
927
ob_start ();
@@ -930,6 +930,21 @@ public function test_render_templates() {
930
930
ob_end_clean ();
931
931
$ this ->assertContains ( 'tmpl-snapshot-save ' , $ templates );
932
932
$ this ->assertContains ( 'tmpl-snapshot-dialog-error ' , $ templates );
933
+ $ this ->assertContains ( 'tmpl-snapshot-preview-link ' , $ templates );
934
+ $ this ->assertContains ( 'tmpl-snapshot-schedule-button ' , $ templates );
935
+ $ this ->assertContains ( 'tmpl-snapshot-schedule ' , $ templates );
936
+ $ this ->assertContains ( 'tmpl-snapshot-scheduled-countdown ' , $ templates );
937
+ $ this ->assertContains ( 'tmpl-snapshot-submit ' , $ templates );
938
+ }
939
+
940
+ /**
941
+ * Test format_gmt_offset
942
+ *
943
+ * @covers Customize_Snapshot_Manager::format_gmt_offset()
944
+ */
945
+ public function test_format_gmt_offset () {
946
+ $ offset = $ this ->manager ->format_gmt_offset ( 7.0 );
947
+ $ this ->assertEquals ( '+7 ' , $ offset );
933
948
}
934
949
935
950
/**
You can’t perform that action at this time.
0 commit comments