MailchimpTest.php in Mailchimp 8
File
lib/mailchimp-api-php/tests/MailchimpTest.php
View source
<?php
namespace Mailchimp\Tests;
use PHPUnit\Framework\TestCase;
class MailchimpTest extends TestCase {
public function testGetAccount() {
$mc = new Mailchimp();
$mc
->getAccount();
$this
->assertEquals('GET', $mc
->getClient()->method);
$this
->assertEquals($mc
->getEndpoint() . '/', $mc
->getClient()->uri);
}
public function testVersion() {
$mc = new Mailchimp();
$this
->assertEquals($mc::VERSION, '2.0.0');
$this
->assertEquals(json_decode(file_get_contents('composer.json'))->version, $mc::VERSION);
}
}