first commit

This commit is contained in:
2024-12-17 13:43:22 +01:00
commit 8e6cd8b410
21292 changed files with 3514826 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?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());
}
}