@@ -51,34 +55,37 @@ class SchedulerDeleteNodeTest extends SchedulerBrowserTestBase {
$this->assertNoRaw(t('Error message'),'No error messages are shown when trying to delete a published node with no scheduling information.');
$this->assertRaw(t('Are you sure you want to delete the content'),'The deletion warning message is shown immediately when trying to delete a published node with no scheduling information.');
$this->assertNoRaw(t('Error message'),'No error messages are shown when trying to delete an unpublished node with no scheduling information.');
$this->assertRaw(t('Are you sure you want to delete the content'),'The deletion warning message is shown immediately when trying to delete an unpublished node with no scheduling information.');
}
/*
Test that nodes can be deleted with no validation errors if the dates are in
the past.
@see http://drupal.org/node/2627370
/**
* Tests the deletion of a scheduled node.
*
* Check that nodes can be deleted with no validation errors if the dates are
* in the past.
*
* @see http://drupal.org/node/2627370
*/
publicfunctiontestDeleteNodeWithPastDates(){
// Log in.
$this->drupalLogin($this->adminUser);
// Create nodes with publish_on and unpublish_on dates in the past.
@@ -90,7 +97,6 @@ class SchedulerDeleteNodeTest extends SchedulerBrowserTestBase {
$this->clickLink('Delete');
$this->assertNoRaw(t('Error message'),'No error messages are shown when trying to delete a node with a publish date in the past.');
$this->assertRaw(t('Are you sure you want to delete the content'),'The deletion warning message is shown immediately when trying to delete a node with a publish date in the past.');