40 lines
		
	
	
		
			686 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			686 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| abstract class TestCase extends Orchestra\Testbench\TestCase {
 | |
| 
 | |
| 	protected function getPackageProviders($app)
 | |
| 	{
 | |
| 		return [
 | |
| 			DaveJamesMiller\Breadcrumbs\ServiceProvider::class,
 | |
| 		];
 | |
| 	}
 | |
| 
 | |
| 	protected function getPackageAliases($app)
 | |
| 	{
 | |
| 		return [
 | |
| 			'Breadcrumbs' => DaveJamesMiller\Breadcrumbs\Facade::class
 | |
| 		];
 | |
| 	}
 | |
| 
 | |
| 	public function setUp()
 | |
| 	{
 | |
| 		parent::setUp();
 | |
| 
 | |
| 		$this->loadServiceProvider();
 | |
| 	}
 | |
| 
 | |
| 	protected function loadServiceProvider()
 | |
| 	{
 | |
| 		// Need to trigger register() to test the views
 | |
| 		$this->app->make('breadcrumbs');
 | |
| 	}
 | |
| 
 | |
| 	public function tearDown()
 | |
| 	{
 | |
| 		$this->addToAssertionCount(Mockery::getContainer()->mockery_getExpectationCount());
 | |
| 
 | |
| 		Mockery::close();
 | |
| 	}
 | |
| 
 | |
| }
 | 
