Files
dolibarr/htdocs/includes/stripe/tests/AuthenticationErrorTest.php
Alexandre SPANGARO d0e27f67e7 Add plugins Stripe
2017-04-18 05:44:08 +02:00

17 lines
329 B
PHP

<?php
namespace Stripe;
class AuthenticationErrorTest extends TestCase
{
public function testInvalidCredentials()
{
Stripe::setApiKey('invalid');
try {
Customer::create();
} catch (Error\Authentication $e) {
$this->assertSame(401, $e->getHttpStatus());
}
}
}