Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 12, 2022
1 parent 62778f1 commit b28812b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/Integration/AnalyticsServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Analytics;
use Carbon\Carbon;
use Illuminate\Support\Facades\Storage;
use Spatie\Analytics\Exceptions\InvalidConfiguration;
use Storage;

class AnalyticsServiceProviderTest extends TestCase
{
Expand All @@ -27,14 +27,11 @@ public function it_allows_credentials_json_file()
Storage::disk('testing-storage')
->put('test-credentials.json', json_encode($this->get_credentials()));

$credentials_json_file_path = Storage::disk('testing-storage')
->getDriver()
->getAdapter()
->applyPathPrefix('test-credentials.json');
$credentialsPath = storage_path('framework/testing/disks/testing-storage/test-credentials.json');

$this->app['config']->set('analytics.view_id', '123456');
config()->set('analytics.view_id', '123456');

$this->app['config']->set('analytics.service_account_credentials_json', $credentials_json_file_path);
config()->set('analytics.service_account_credentials_json', $credentialsPath);

$analytics = $this->app['laravel-analytics'];

Expand Down

0 comments on commit b28812b

Please sign in to comment.