forked from stripe/stripe-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stripe#116 from JustinHook/master
Fix stripe#114. Pass API key to _scopedSave
- Loading branch information
Showing
3 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,16 @@ public function testSave() | |
|
||
$stripeCustomer = Stripe_Customer::retrieve($customer->id); | ||
$this->assertEqual($customer->email, $stripeCustomer->email); | ||
|
||
|
||
Stripe::setApiKey(null); | ||
$customer = Stripe_Customer::create(null, StripeTestCase::API_KEY); | ||
$customer->email = '[email protected]'; | ||
$customer->save(); | ||
|
||
StripeTestCase::authorizeFromEnv(); | ||
$updatedCustomer = Stripe_Customer::retrieve($customer->id); | ||
$this->assertEqual($updatedCustomer->email, '[email protected]'); | ||
} | ||
|
||
public function testBogusAttribute() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters