1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-23 05:22:53 +00:00
website/files/stripe/tests/PermissionsErrorTest.php

23 lines
460 B
PHP
Raw Normal View History

<?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');
}
}