Source of file AAGoogleClientServiceTest.php
Size: 0,770 Bytes - Last Modified: 2021-12-24T06:47:25+00:00
/var/www/docs.ssmods.com/process/src/tests/AAGoogleClientServiceTest.php
1234567891011121314151617181920212223242526272829303132 | <?php class AAGoogleClientServiceTest extends SapphireTest { /** * We want this process to be run in a separate process * for constant definition reasons * @var bool */ protected $runTestInSeparateProcess = true; protected $preserveGlobalState = true; /** * @expectedException LogicException */ public function testException() { new GoogleClientService(); } /** * Validate it's constructed */ public function testCreation() { define('SS_ANALYTICS_KEY', Director::baseFolder() . DIRECTORY_SEPARATOR . 'google-api/tests/fixtures/test.json'); $client = new GoogleClientService(); $this->assertInstanceOf(Google_Client::class, $client->getClient()); } } |