mirror of
https://gitlab.com/openlp/website.git
synced 2024-08-31 11:03:37 +00:00
23 lines
460 B
PHP
23 lines
460 B
PHP
<?php
|
|
|
|
namespace Stripe;
|
|
|
|
class PermissionErrorTest extends TestCase
|
|
{
|
|
private function permissionErrorResponse()
|
|
{
|
|
return array(
|
|
'error' => array(),
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @expectedException Stripe\Error\Permission
|
|
*/
|
|
public function testPermission()
|
|
{
|
|
$this->mockRequest('GET', '/v1/accounts/acct_DEF', array(), $this->permissionErrorResponse(), 403);
|
|
Account::retrieve('acct_DEF');
|
|
}
|
|
}
|