Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function run($request = null) |
||
13 | { |
||
14 | if (!DataObject::get_one('TableShippingMethod')) { |
||
15 | $factory = Injector::inst()->create('FixtureFactory'); |
||
16 | $fixture = new YamlFixture('silvershop-shipping/tests/fixtures/TableShippingMethod.yml'); |
||
17 | $fixture->writeInto($factory); |
||
18 | DB::alteration_message('Created table shipping methods', 'created'); |
||
19 | } else { |
||
20 | DB::alteration_message('Some table shipping methods already exist. None were created.'); |
||
21 | } |
||
22 | } |
||
23 | } |
||
38 |