mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Remove assertions for addtocampaign action
This commit is contained in:
parent
f9aeeb1d6c
commit
3dbca48d29
@ -41,7 +41,6 @@ class SiteTreeActionsTest extends FunctionalTest
|
||||
$page = Page::get()->byID($page->ID);
|
||||
$actions = $page->getCMSActions();
|
||||
|
||||
$this->assertNull($actions->dataFieldByName('action_addtocampaign'));
|
||||
$this->assertNull($actions->dataFieldByName('action_save'));
|
||||
$this->assertNull($actions->dataFieldByName('action_publish'));
|
||||
$this->assertNull($actions->dataFieldByName('action_unpublish'));
|
||||
@ -96,7 +95,6 @@ class SiteTreeActionsTest extends FunctionalTest
|
||||
|
||||
$actions = $page->getCMSActions();
|
||||
|
||||
$this->assertNotNull($actions->dataFieldByName('action_addtocampaign'));
|
||||
$this->assertNotNull($actions->dataFieldByName('action_save'));
|
||||
$this->assertNotNull($actions->dataFieldByName('action_publish'));
|
||||
$this->assertNotNull($actions->dataFieldByName('action_unpublish'));
|
||||
@ -124,8 +122,6 @@ class SiteTreeActionsTest extends FunctionalTest
|
||||
|
||||
$actions = $page->getCMSActions();
|
||||
|
||||
// Theoretically allow deletions to be staged via add to campaign
|
||||
$this->assertNotNull($actions->dataFieldByName('action_addtocampaign'));
|
||||
$this->assertNull($actions->dataFieldByName('action_save'));
|
||||
$this->assertNull($actions->dataFieldByName('action_publish'));
|
||||
$this->assertNull($actions->dataFieldByName('action_unpublish'));
|
||||
@ -152,7 +148,6 @@ class SiteTreeActionsTest extends FunctionalTest
|
||||
$page = Page::get()->byID($page->ID);
|
||||
|
||||
$actions = $page->getCMSActions();
|
||||
$this->assertNotNull($actions->dataFieldByName('action_addtocampaign'));
|
||||
$this->assertNotNull($actions->dataFieldByName('action_save'));
|
||||
$this->assertNotNull($actions->dataFieldByName('action_publish'));
|
||||
$this->assertNotNull($actions->dataFieldByName('action_unpublish'));
|
||||
@ -173,7 +168,6 @@ class SiteTreeActionsTest extends FunctionalTest
|
||||
$version = DB::query('SELECT "Version" FROM "SiteTree_Versions" WHERE "Content" = \'test page first version\'')->value();
|
||||
$old = Versioned::get_version('Page', $p->ID, $version);
|
||||
$actions = $old->getCMSActions();
|
||||
$this->assertNull($actions->dataFieldByName('action_addtocampaign'));
|
||||
$this->assertNull($actions->dataFieldByName('action_save'));
|
||||
$this->assertNull($actions->dataFieldByName('action_publish'));
|
||||
$this->assertNull($actions->dataFieldByName('action_unpublish'));
|
||||
|
Loading…
Reference in New Issue
Block a user