Completed
Push — 3.1 ( 6c19c5...97d1e4 )
by Gordon
04:55
created

ImagePotTestPageTO

Complexity

Total Complexity 0

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%
Metric Value
wmc 0
lcom 0
cbo 0
dl 0
loc 3
ccs 0
cts 0
cp 0
1
<?php
2
3
class ImagePointOfInterestExtensionTest extends SapphireTest
4
{
5
    public function setUpOnce()
6
    {
7
        $this->requiredExtensions = array(
8
            'ImagePotTestPageTO' => array('MapExtension', 'ImagePointOfInterestExtension'),
9
        );
10
        parent::setUpOnce();
11
    }
12
13 1
    public function testUpdateCMSFields()
14
    {
15 1
        $page = new ImagePotTestPageTO();
16 1
        $fields = $page->getCMSFields();
17 1
        $tab = $fields->findOrMakeTab('Root.Main');
18 1
        $fields = $tab->FieldList();
19 1
        $names = array();
20 1
        foreach ($fields as $field) {
21 1
            $names[] = $field->getName();
22 1
        }
23
24 1
        error_log(print_r($names, 1));
25 1
    }
26
}
27
28
class ImagePotTestPageTO extends Page implements TestOnly
29
{
30
}
31