AntonyThorpe\Consumer\Tests\BulkLoaderUpdateRecordsTest
Synopsis
class BulkLoaderUpdateRecordsTest
extends SapphireTest
{
- // members
- protected static array $fixture_file = ;
- protected static array $extra_dataobjects = ;
- protected string $jsondata1 = '[ { "id": 1, "name": "Leanne Graham", "username": "Bret", "email": "Sincere@april.biz", "phone": "1-770-736-8031 x56442", "website": "hildegard.org", "lastmodified": "2015-11-21T08:07:20" }, { "id": 2, "name": "Ervin Howell", "username": "Antonette", "email": "Shanna@melissa.tv", "phone": "010-692-6593 x09125", "website": "anastasia.net", "lastmodified": "2015-11-21T08:07:20" }, { "id": 3, "name": "Clementine Bauch", "username": "Samantha", "email": "Nathan@yesenia.net", "phone": "1-463-123-4447", "website": "ramiro.info", "lastmodified": "2015-11-21T08:07:20" }, { "id": 4, "name": "Patricia Lebsack", "username": "Karianne", "email": "Julianne.OConner@kory.org", "phone": "493-170-9623 x156", "website": "kale.biz", "lastmodified": "2015-11-21T08:07:20" }, { "id": 5, "name": "Chelsey Dietrich", "username": "Kamren", "email": "Lucio_Hettinger@annie.ca", "phone": "(254)954-1289", "website": "demarco.info", "lastmodified": "2015-11-21T08:07:20" }, { "id": 6, "name": "Mrs. Dennis Schulist", "username": "Leopoldo_Corkery", "email": "Karley_Dach@jasper.info", "phone": "1-477-935-8478 x6430", "website": "ola.org", "lastmodified": "2015-11-21T08:07:20" }, { "id": 7, "name": "Kurtis Weissnat", "username": "Elwyn.Skiles", "email": "Telly.Hoeger@billy.biz", "phone": "210.067.6132", "website": "elvis.io", "lastmodified": "2015-11-21T08:07:20" }, { "id": 8, "name": "Nicholas Runolfsdottir V", "username": "Maxime_Nienow", "email": "Sherwood@rosamond.me", "phone": "586.493.6943 x140", "website": "jacynthe.com", "lastmodified": "2015-11-21T08:07:20" }, { "id": 9, "name": "Glenna Reichert", "username": "Delphine", "email": "Chaim_McDermott@dana.io", "phone": "(775)976-6794 x41206", "website": "conrad.com", "lastmodified": "2015-11-21T08:07:20" }, { "id": 10, "name": "Clementina DuBuque", "username": "Moriah.Stanton", "email": "Rey.Padberg@karina.biz", "phone": "024-648-3804", "website": "ambrose.net", "lastmodified": "2015-11-21T08:07:20" } ]';
- protected string $jsondata2 = '[ { "ProductCode": "SPACE", "ProductDescription": "Space - The Final Frontier", "Barcode": null, "DefaultSellPrice": 95.95, "Guid": "c92823f0-a5af-4e66-91a7-d2c66c25f885", "LastModifiedOn": "2016-02-21T08:07:20" }, { "ProductCode": "BOOK", "ProductDescription": "Book of Science", "Barcode": null, "DefaultSellPrice": 24.95, "Guid": "5cf1c9ba-89de-4f59-879c-c08a447fd49c", "LastModifiedOn": "2015-11-21T08:07:20" } ]';
- // methods
- public void setUp()
- public void testUpdateRecords()
- public void testUpdateRecordsWithPreview()
- public void testUpdateRecordsWhenDataobjectExtendsPage()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $fixture_file
- $jsondata1
—
string
JSON data for test - $jsondata2
—
string
JSON data for test