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

Commit

Permalink
Update unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Aug 10, 2016
1 parent ae7189d commit 59a7484
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/php/test-class-customize-snapshot-manager.php
Expand Up @@ -921,7 +921,7 @@ public function test_add_post_edit_and_exit_links() {
/**
* Test render templates.
*
* @see Customize_Snapshot_Manager::render_templates()
* @covers Customize_Snapshot_Manager::render_templates()
*/
public function test_render_templates() {
ob_start();
Expand All @@ -930,6 +930,21 @@ public function test_render_templates() {
ob_end_clean();
$this->assertContains( 'tmpl-snapshot-save', $templates );
$this->assertContains( 'tmpl-snapshot-dialog-error', $templates );
$this->assertContains( 'tmpl-snapshot-preview-link', $templates );
$this->assertContains( 'tmpl-snapshot-schedule-button', $templates );
$this->assertContains( 'tmpl-snapshot-schedule', $templates );
$this->assertContains( 'tmpl-snapshot-scheduled-countdown', $templates );
$this->assertContains( 'tmpl-snapshot-submit', $templates );
}

/**
* Test format_gmt_offset
*
* @covers Customize_Snapshot_Manager::format_gmt_offset()
*/
public function test_format_gmt_offset() {
$offset = $this->manager->format_gmt_offset( 7.0 );
$this->assertEquals( '+7', $offset );
}

/**
Expand Down

0 comments on commit 59a7484

Please sign in to comment.