for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Firesphere\GoogleAPI\Tests;
use Firesphere\GoogleAPI\Services\GoogleClientService;
use Google_Client;
use SilverStripe\Dev\SapphireTest;
class GoogleClientServiceTest extends SapphireTest
{
/**
* Validate it's constructed
*/
public function testCreation()
$client = new GoogleClientService();
$this->assertInstanceOf(Google_Client::class, $client->getClient());
}
* @expectedException \LogicException
public function testNoAnalyticsKey()
putenv('SS_ANALYTICS_KEY');
new GoogleClientService();