| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | public function testAddPageToShortlist() { |
||
| 29 | $testpage = $this->objFromFixture('Page', 'page1'); |
||
| 30 | |||
| 31 | $this->get('shortlist/add?id=' . $testpage->ID . '&type=Page&s=' . session_id()); |
||
| 32 | |||
| 33 | $shortlist = DataObject::get_one('ShortList', array('SessionID' => session_id())); |
||
| 34 | |||
| 35 | $this->assertNotEquals($shortlist->ShortListItems()->Count(), 0); |
||
| 36 | } |
||
| 37 | |||
| 51 |
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.