Resolve "Add the add battery test command" #1075

Open
korina.cordero wants to merge 3 commits from 225-add-the-add-battery-test-command into master
2 changed files with 13 additions and 0 deletions

View file

@ -81,6 +81,18 @@ class TestAPICommand extends Command
$api->get('/capi/battery_sizes');
$api->get('/capi/batteries');
// add battery
$sku = 'WZMB31QT-CPP01-S';
$brand_id = '4';
$size_id = '1';
$params = [
'sku' => $sku,
'brand_id' => $brand_id,
'size_id' => $size_id,
];
$api->post('/capi/batteries', $params);
// vehicle
$api->get('/capi/vehicle_manufacturers');
$api->get('/capi/vehicles');

View file

@ -102,3 +102,4 @@ class TestCommand extends Command
*/
}
}