Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Fixes #202
Browse files Browse the repository at this point in the history
Change getAccounts() on organization to return Account List
  • Loading branch information
Brian Retterer committed Feb 3, 2017
1 parent c8e88fe commit 2cae6a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resource/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function createAccount(Account $account, array $options = array())

public function getAccounts(array $options = [])
{
return $this->getResourceProperty(self::ACCOUNTS, Stormpath::ACCOUNT, $options);
return $this->getResourceProperty(self::ACCOUNTS, Stormpath::ACCOUNT_LIST, $options);
}

public function getAccountStoreMappings(array $options = [])
Expand Down
2 changes: 1 addition & 1 deletion tests/Resource/OrganizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function it_can_get_all_properties()
$this->assertNotNull(self::$organization->tenant);
$this->assertNull(self::$organization->defaultAccountStoreMapping);
$this->assertNull(self::$organization->defaultGroupStoreMapping);
$this->assertInstanceof('\Stormpath\Resource\Account', self::$organization->accounts);
$this->assertInstanceof('\Stormpath\Resource\AccountList', self::$organization->accounts);
$this->assertInstanceOf('\Stormpath\Resource\GroupList', self::$organization->groups);
}

Expand Down

0 comments on commit 2cae6a4

Please sign in to comment.