1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-22 04:52:49 +00:00
website/files/stripe/tests/PermissionsErrorTest.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');
}
}