Skip to content

Commit

Permalink
add brevo driver test
Browse files Browse the repository at this point in the history
  • Loading branch information
repl6669 committed Jan 10, 2024
1 parent 122035f commit 6ca1d6b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Drivers/BrevoDriverTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

use Brevo\Client\Api\ContactsApi as Brevo;
use Dystcz\LunarApiNewsletter\Drivers\BrevoDriver;
use Dystcz\LunarApiNewsletter\Tests\TestCase;
use Illuminate\Support\Facades\Config;
use Spatie\Newsletter\Facades\Newsletter;

uses(TestCase::class);

it('can get the Brevo API', function () {
Config::set('newsletter.driver', BrevoDriver::class);

expect(Newsletter::getApi())->toBeInstanceOf(Brevo::class);
});

0 comments on commit 6ca1d6b

Please sign in to comment.