Files
newwalls.pl/modules/mailchimppro/vendor/drewm/mailchimp-api/tests/BatchTest.php
2024-12-17 13:43:22 +01:00

30 lines
602 B
PHP

<?php
namespace DrewM\MailChimp\Tests;
use DrewM\MailChimp\MailChimp;
use PHPUnit\Framework\TestCase;
class BatchTest extends TestCase
{
/**
* @throws \Exception
*/
public function testNewBatch()
{
$MC_API_KEY = getenv('MC_API_KEY');
if (!$MC_API_KEY) {
$this->markTestSkipped('No API key in ENV');
}
$MailChimp = new MailChimp($MC_API_KEY);
$Batch = $MailChimp->new_batch('1');
$this->assertInstanceOf('\DrewM\MailChimp\Batch', $Batch);
$this->assertSame(array(), $Batch->get_operations());
}
}