Files
faveo/vendor/davejamesmiller/laravel-breadcrumbs/tests/integration/DependantServiceProviderErrorTest.php
Manish Verma 76e85db070 update 1.0.8.0
Commits for version update
2016-10-17 12:02:27 +05:30

44 lines
830 B
PHP

<?php
class DependantServiceProviderErrorTest extends TestCase {
protected function getPackageProviders($app)
{
return [
// These are in the wrong order
DependantServiceProviderError::class,
DaveJamesMiller\Breadcrumbs\ServiceProvider::class,
];
}
protected function loadServiceProvider()
{
// Disabled - we want to test the automatic loading instead
}
/**
* @expectedException DaveJamesMiller\Breadcrumbs\Exception
* @expectedExceptionMessage Breadcrumbs view not specified
*/
public function testRender()
{
Breadcrumbs::render('home');
}
}
class DependantServiceProviderError extends Illuminate\Support\ServiceProvider {
public function register()
{
}
public function boot()
{
Breadcrumbs::register('home', function($breadcrumbs) {
$breadcrumbs->push('Home', '/');
});
}
}