mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-21 08:51:34 +02:00
51 lines
970 B
PHP
51 lines
970 B
PHP
<?php
|
|
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
namespace Tests\Feature\Bank;
|
|
|
|
use App\Helpers\Bank\Yodlee\Yodlee;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
use Tests\TestCase;
|
|
|
|
class YodleeApiTest extends TestCase
|
|
{
|
|
use DatabaseTransactions;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
}
|
|
|
|
public function testAccessTokenGeneration()
|
|
{
|
|
|
|
$yodlee = new Yodlee(true);
|
|
|
|
$access_token = $yodlee->getAccessToken();
|
|
|
|
nlog($access_token);
|
|
|
|
$this->assertNotNull($access_token);
|
|
}
|
|
|
|
public function testCreateUser()
|
|
{
|
|
$yodlee = new Yodlee(true);
|
|
|
|
$create_user = $yodlee->createUser();
|
|
|
|
nlog($create_user);
|
|
|
|
}
|
|
|
|
}
|