Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
4 | public function testManagedModels() { |
||
5 | $modelAdmin = new PointsOfInterestAdmin(); |
||
6 | $models = $modelAdmin->getManagedModels(); |
||
7 | $expected = array( |
||
8 | 'PointsOfInterestLayer' => array( |
||
9 | 'title' => 'Points Of Interest Layer' |
||
10 | ), |
||
11 | 'PointOfInterest' => array( |
||
12 | 'title' => 'Point Of Interest' |
||
13 | ) |
||
14 | ); |
||
15 | $this->assertEquals($expected, $models); |
||
16 | } |
||
17 | } |
||
18 |
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.