Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 59a7484

Browse files
committed
Update unit-test
1 parent ae7189d commit 59a7484

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/php/test-class-customize-snapshot-manager.php

+16-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ public function test_add_post_edit_and_exit_links() {
921921
/**
922922
* Test render templates.
923923
*
924-
* @see Customize_Snapshot_Manager::render_templates()
924+
* @covers Customize_Snapshot_Manager::render_templates()
925925
*/
926926
public function test_render_templates() {
927927
ob_start();
@@ -930,6 +930,21 @@ public function test_render_templates() {
930930
ob_end_clean();
931931
$this->assertContains( 'tmpl-snapshot-save', $templates );
932932
$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 );
933948
}
934949

935950
/**

0 commit comments

Comments
 (0)