Skip to content

Commit

Permalink
rename AccountEndpoint::info() to get()
Browse files Browse the repository at this point in the history
all other endpoints use `get` as method name
  • Loading branch information
darthmaim committed Jun 27, 2015
1 parent 345b357 commit 6634c95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/V2/Endpoint/Account/AccountEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,19 @@ protected function url() {
/**
* Get your basic account info.
*
* @deprecated since 1.5.0
* @return mixed
*/
public function info() {
return $this->get();
}

/**
* Get your basic account info.
*
* @return mixed
*/
public function get() {
return $this->request()->json();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/V2/AccountEndpointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function test() {
]
}');

$account = $this->api()->account('api_key')->info();
$account = $this->api()->account('api_key')->get();
$this->assertEquals( 'Lawton.1234', $account->name );
}
}

0 comments on commit 6634c95

Please sign in to comment.