Page MenuHomeDevCentral

ServicesServiceProviderTest.php
No OneTemporary

ServicesServiceProviderTest.php

<?php
namespace Nasqueron\Notifications\Tests\Providers;
use Nasqueron\Notifications\Providers\ServicesServiceProvider;
use Config;
class ServicesServiceProviderTest extends TestCase {
public function testType () {
$this->assertServiceInstanceOf(
'Nasqueron\Notifications\Services\Services',
'services'
);
}
///
/// Tests specific to this service provider
///
public function testWithCredentialsFile () {
$services = $this->app->make('services');
$this->assertGreaterThan(0, count($services->services));
}
public function testWithoutCredentialsFile () {
Config::set('services.gate.credentials', null);
$services = $this->app->make('services');
$this->assertSame(0, count($services->services));
}
public function testWithNontFoundCredentialsFile () {
Config::set('services.gate.credentials', 'notfound.json');
$services = $this->app->make('services');
$this->assertSame(0, count($services->services));
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jul 29, 13:54 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2760172
Default Alt Text
ServicesServiceProviderTest.php (1 KB)

Event Timeline