update v 1.0.7.5
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
class DependantServiceProviderErrorTest extends TestCase {
|
||||
|
||||
protected function getPackageProviders()
|
||||
{
|
||||
return [
|
||||
// These are in the wrong order
|
||||
'DependantServiceProviderError',
|
||||
'DaveJamesMiller\Breadcrumbs\ServiceProvider',
|
||||
];
|
||||
}
|
||||
|
||||
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', '/');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user