Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | public function testUpdateCmsFields() { |
||
18 | $page = $this->objFromFixture('Page', 'elementaldemo'); |
||
19 | |||
20 | $elementarea = $page->getCMSFields()->dataFieldByName('ElementArea'); |
||
21 | $this->assertNotNull($elementarea); |
||
22 | |||
23 | |||
24 | $elementarea = $page->getCMSFields()->dataFieldByName('Content'); |
||
25 | $this->assertNull($content); |
||
26 | |||
27 | $redirect = $this->objFromFixture('Page', 'elementredirectpage'); |
||
28 | $elementarea = $page->getCMSFields()->dataFieldByName('ElementArea'); |
||
29 | $this->assertNull($elementarea); |
||
30 | } |
||
31 | |||
44 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.