From 03e096eafeaa8457db9b8f3e912aef7036f3f0b3 Mon Sep 17 00:00:00 2001 From: Ben Verbeken Date: Mon, 8 Oct 2018 21:29:29 +0200 Subject: [PATCH] build fix - validation errors resulted in test failures --- tests/Accounts/RetrieveMyAccountTest.php | 6 +++--- tests/sampleChartWithTables.json | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/Accounts/RetrieveMyAccountTest.php b/tests/Accounts/RetrieveMyAccountTest.php index 411a7fa..8c2fd1e 100644 --- a/tests/Accounts/RetrieveMyAccountTest.php +++ b/tests/Accounts/RetrieveMyAccountTest.php @@ -16,8 +16,8 @@ public function test() self::assertNotEmpty($account->publicKey); self::assertNotEmpty($account->email); self::assertTrue($account->settings->draftChartDrawingsEnabled); - self::assertEquals("WARNING", $account->settings->chartValidation->VALIDATE_DUPLICATE_LABELS); - self::assertEquals("WARNING", $account->settings->chartValidation->VALIDATE_OBJECTS_WITHOUT_CATEGORIES); - self::assertEquals("WARNING", $account->settings->chartValidation->VALIDATE_UNLABELED_OBJECTS); + self::assertEquals("ERROR", $account->settings->chartValidation->VALIDATE_DUPLICATE_LABELS); + self::assertEquals("ERROR", $account->settings->chartValidation->VALIDATE_OBJECTS_WITHOUT_CATEGORIES); + self::assertEquals("ERROR", $account->settings->chartValidation->VALIDATE_UNLABELED_OBJECTS); } } \ No newline at end of file diff --git a/tests/sampleChartWithTables.json b/tests/sampleChartWithTables.json index 27e20f8..bb56e84 100644 --- a/tests/sampleChartWithTables.json +++ b/tests/sampleChartWithTables.json @@ -39,54 +39,54 @@ "x": 35.74, "y": 70.75, "label": "1", - "categoryLabel": null, + "categoryLabel": "Cat1", "categoryAccessible": null, - "categoryKey": null, + "categoryKey": 9, "uuid": "uuid9" }, { "x": 9, "y": 55.31, "label": "2", - "categoryLabel": null, + "categoryLabel": "Cat1", "categoryAccessible": null, - "categoryKey": null, + "categoryKey": 9, "uuid": "uuid10" }, { "x": 9, "y": 24.44, "label": "3", - "categoryLabel": null, + "categoryLabel": "Cat1", "categoryAccessible": null, - "categoryKey": null, + "categoryKey": 9, "uuid": "uuid11" }, { "x": 35.74, "y": 9, "label": "4", - "categoryLabel": null, + "categoryLabel": "Cat1", "categoryAccessible": null, - "categoryKey": null, + "categoryKey": 9, "uuid": "uuid12" }, { "x": 62.47, "y": 24.44, "label": "5", - "categoryLabel": null, + "categoryLabel": "Cat1", "categoryAccessible": null, - "categoryKey": null, + "categoryKey": 9, "uuid": "uuid13" }, { "x": 62.47, "y": 55.31, "label": "6", - "categoryLabel": null, + "categoryLabel": "Cat1", "categoryAccessible": null, - "categoryKey": null, + "categoryKey": 9, "uuid": "uuid14" } ],