Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testAddToCampaignButtonIsAdded() |
||
20 | { |
||
21 | $this->logInWithPermission(); |
||
22 | |||
23 | $page = new SiteTree(); |
||
24 | $page->write(); |
||
25 | $actions = $page->getCMSActions(); |
||
26 | |||
27 | $informationField = $actions->fieldByName('ActionMenus.MoreOptions.action_addtocampaign'); |
||
28 | $this->assertNotNull($informationField, 'Add To Campaign button should have been added'); |
||
29 | } |
||
44 |