Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/Controller/PaymentsStripeTest.php
Show First 20 Lines • Show All 451 Lines • ▼ Show 20 Lines | class PaymentsStripeTest extends TestCase | ||||
/** | /** | ||||
* Test automatic payment charges | * Test automatic payment charges | ||||
* | * | ||||
* @group stripe | * @group stripe | ||||
*/ | */ | ||||
public function testTopUpAndWebhook(): void | public function testTopUpAndWebhook(): void | ||||
{ | { | ||||
$this->markTestIncomplete(); | |||||
Bus::fake(); | Bus::fake(); | ||||
$user = $this->getTestUser('john@kolab.org'); | $user = $this->getTestUser('john@kolab.org'); | ||||
$wallet = $user->wallets()->first(); | $wallet = $user->wallets()->first(); | ||||
// Stripe API does not allow us to create a mandate easily | // Stripe API does not allow us to create a mandate easily | ||||
// That's why we we'll mock API responses | // That's why we we'll mock API responses | ||||
// Create a fake mandate | // Create a fake mandate | ||||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |