update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -0,0 +1,39 @@
<?php
class DependantServiceProviderTest extends TestCase {
protected function getPackageProviders()
{
return [
'DaveJamesMiller\Breadcrumbs\ServiceProvider',
'DependantServiceProvider',
];
}
protected function loadServiceProvider()
{
// Disabled - we want to test the automatic loading instead
}
public function testRender()
{
$html = Breadcrumbs::render('home');
$this->assertXmlStringEqualsXmlFile(__DIR__ . '/../fixtures/DependantServiceProvider.html', $html);
}
}
class DependantServiceProvider extends Illuminate\Support\ServiceProvider {
public function register()
{
}
public function boot()
{
Breadcrumbs::register('home', function($breadcrumbs) {
$breadcrumbs->push('Home', '/');
});
}
}