Skip to content

Commit

Permalink
Exposed isSubaccount flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Apr 2, 2019
1 parent 4d41ece commit efe8a40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Accounts/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ class Account
* @var string
*/
public $email;
/**
* @var boolean
*/
public $isSubaccount;
/**
* @var AccountSettings
*/
public $settings;
}
}
3 changes: 2 additions & 1 deletion tests/Accounts/RetrieveMyAccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ public function test()
self::assertNotEmpty($account->designerKey);
self::assertNotEmpty($account->publicKey);
self::assertNotEmpty($account->email);
self::assertFalse($account->isSubaccount);
self::assertTrue($account->settings->draftChartDrawingsEnabled);
self::assertTrue($account->settings->holdOnSelectForGAs);
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);
}
}
}

0 comments on commit efe8a40

Please sign in to comment.