You are here

public function NewsletterListTestCase::testNewsletterListDelete in Newsletter 7.2

Same name and namespace in other branches
  1. 7 newsletter.test \NewsletterListTestCase::testNewsletterListDelete()

File

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

Class

NewsletterListTestCase
The NewsletterListTestCase tests CUD actions through Web UI for newsletter lists.

Code

public function testNewsletterListDelete() {

  // Delete the Default list.
  $this
    ->drupalPost('admin/config/media/newsletter/lists/delete/1', NULL, t('Confirm'));
  $this
    ->assertText(t('List deleted successfully'));
}