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

40 lines
758 B
PHP

<?php
class DependantServiceProviderTest extends TestCase {
protected function getPackageProviders($app)
{
return [
DaveJamesMiller\Breadcrumbs\ServiceProvider::class,
DependantServiceProvider::class,
];
}
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', '/');
});
}
}