AntonyThorpe\SilverShopUnleashed\Tests\UnleashedBulkLoaderUpdateRecordsTest
Synopsis
class UnleashedBulkLoaderUpdateRecordsTest
extends SapphireTest
{
- // members
- protected static array $fixture_file = ;
- private $mp3player;
- private $socks;
- protected string $jsondata = '[ { "Pagination": { "NumberOfItems": 14, "PageSize": 200, "PageNumber": 1, "NumberOfPages": 1 }, "Items": [ { "ProductCode": "IIID1", "ProductDescription": "Socks Updated", "Barcode": null, "PackSize": null, "Width": 1, "Height": 2, "Depth": 3, "Weight": 0.1, "MinStockAlertLevel": null, "MaxStockAlertLevel": null, "ReOrderPoint": null, "UnitOfMeasure": { "Guid": "2b9e913b-f815-440f-83ac-3639e3f04d64", "Name": "EA" }, "NeverDiminishing": false, "LastCost": 47.5, "DefaultPurchasePrice": 47.5, "DefaultSellPrice": 8.50, "AverageLandPrice": 40.4294, "Obsolete": false, "Notes": null, "SellPriceTier1": { "Name": "Sell Price Tier 1", "Value": null }, "SellPriceTier2": { "Name": "Sell Price Tier 2", "Value": null }, "SellPriceTier3": { "Name": "Sell Price Tier 3", "Value": null }, "SellPriceTier4": { "Name": "Sell Price Tier 4", "Value": null }, "SellPriceTier5": { "Name": "Sell Price Tier 5", "Value": null }, "SellPriceTier6": { "Name": "Sell Price Tier 6", "Value": null }, "SellPriceTier7": { "Name": "Sell Price Tier 7", "Value": null }, "SellPriceTier8": { "Name": "Sell Price Tier 8", "Value": null }, "SellPriceTier9": { "Name": "Sell Price Tier 9", "Value": null }, "SellPriceTier10": { "Name": "Sell Price Tier 10", "Value": null }, "XeroTaxCode": null, "XeroTaxRate": null, "TaxablePurchase": true, "TaxableSales": true, "XeroSalesTaxCode": null, "XeroSalesTaxRate": null, "IsComponent": false, "IsAssembledProduct": false, "CanAutoAssemble": false, "ProductGroup": { "GroupName": "Clothing", "Guid": "G112", "LastModifiedOn": "2015-11-21T08:07:20" }, "XeroSalesAccount": null, "XeroCostOfGoodsAccount": null, "BinLocation": null, "Supplier": null, "SourceId": null, "CreatedBy": "admin", "SourceVariantParentId": null, "Guid": "G11", "LastModifiedOn": "2015-11-21T08:07:20" }, { "ProductCode": "IIID5", "ProductDescription": "Mp3 Player Updated", "Barcode": null, "PackSize": null, "Width": 0.4, "Height": 1, "Depth": 1, "Weight": 1, "MinStockAlertLevel": 5, "MaxStockAlertLevel": 100, "ReOrderPoint": null, "UnitOfMeasure": { "Guid": "2b9e913b-f815-440f-83ac-3639e3f04d64", "Name": "EA" }, "NeverDiminishing": false, "LastCost": 12.8529, "DefaultPurchasePrice": 200, "DefaultSellPrice": 24.95, "AverageLandPrice": 12.4539, "Obsolete": true, "Notes": null, "SellPriceTier1": { "Name": "Sell Price Tier 1", "Value": null }, "SellPriceTier2": { "Name": "Sell Price Tier 2", "Value": null }, "SellPriceTier3": { "Name": "Sell Price Tier 3", "Value": null }, "SellPriceTier4": { "Name": "Sell Price Tier 4", "Value": null }, "SellPriceTier5": { "Name": "Sell Price Tier 5", "Value": null }, "SellPriceTier6": { "Name": "Sell Price Tier 6", "Value": null }, "SellPriceTier7": { "Name": "Sell Price Tier 7", "Value": null }, "SellPriceTier8": { "Name": "Sell Price Tier 8", "Value": null }, "SellPriceTier9": { "Name": "Sell Price Tier 9", "Value": null }, "SellPriceTier10": { "Name": "Sell Price Tier 10", "Value": null }, "XeroTaxCode": null, "XeroTaxRate": null, "TaxablePurchase": true, "TaxableSales": true, "XeroSalesTaxCode": null, "XeroSalesTaxRate": null, "IsComponent": false, "IsAssembledProduct": false, "CanAutoAssemble": false, "ProductGroup": { "GroupName": "Electronics", "Guid": "G113", "LastModifiedOn": "2015-11-21T08:07:20" }, "XeroSalesAccount": null, "XeroCostOfGoodsAccount": null, "BinLocation": null, "Supplier": null, "SourceId": null, "CreatedBy": "admin", "SourceVariantParentId": null, "Guid": "G15", "LastModifiedOn": "2015-11-21T08:07:20" } ] } ]';
- // methods
- public void setUp()
- public void testUpdate()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
private
- $mp3player
- $socks
protected
- $fixture_file
- $jsondata
—
string
JSON data for test