/** * Test render templates. * * @covers CustomizeSnapshots\Customize_Snapshot_Manager::render_templates() */ public function test_render_templates() { ob_start(); $this->manager->render_templates(); $templates = ob_get_contents(); 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); }