You are here

public function NewsletterTemplateTestCase::testNewsletterTemplateDelete in Newsletter 7

Same name and namespace in other branches
  1. 7.2 newsletter.test \NewsletterTemplateTestCase::testNewsletterTemplateDelete()

File

./newsletter.test, line 63
Tests for Newsletter module.

Class

NewsletterTemplateTestCase
The NewsletterTemplateTestCase tests CUD actions through Web UI for newsletter templates.

Code

public function testNewsletterTemplateDelete() {

  // Delete the Default template.
  $this
    ->drupalPost('admin/config/media/newsletter/templates/delete/4', NULL, t('Confirm'));
  $this
    ->assertText(t('Template deleted successfully'));
}