Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testDefaultRecordsAreCreated() |
||
15 | { |
||
16 | Config::inst()->update('DMSTaxonomyTypeExtension', 'default_records', array('Food', 'Beverage', 'Books')); |
||
17 | |||
18 | TaxonomyType::create()->requireDefaultRecords(); |
||
19 | |||
20 | $this->assertDOSContains( |
||
21 | array( |
||
22 | array('Name' => 'Food'), |
||
23 | array('Name' => 'Beverage'), |
||
24 | array('Name' => 'Books'), |
||
25 | ), |
||
26 | TaxonomyType::get() |
||
27 | ); |
||
28 | } |
||
29 | } |
||
30 |
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.