Add API for easy programmatic capture

This commit is contained in:
Alex P 2023-03-14 16:40:20 +02:00
parent b62072c537
commit d40d01a4f4
No known key found for this signature in database
GPG key ID: 54487A734A204D71
9 changed files with 577 additions and 58 deletions

View file

@ -47,7 +47,7 @@ class IdentityTokenTest extends TestCase
public function testGenerateForCustomerReturnsToken()
{
$id = 1;
define( 'PPCP_FLAG_SUBSCRIPTION', true );
!defined('PPCP_FLAG_SUBSCRIPTION') && define('PPCP_FLAG_SUBSCRIPTION', true);
$token = Mockery::mock(Token::class);
$token
->expects('token')->andReturn('bearer');