1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:14:04 +00:00

Begin work on tests

This commit is contained in:
Samuel Štancl 2019-02-01 22:47:10 +01:00
parent 349832c64b
commit 999507fe42
6 changed files with 172 additions and 0 deletions

11
tests/HelloWorldTest.php Normal file
View file

@ -0,0 +1,11 @@
<?php
namespace Stancl\Tenancy\Tests;
class HelloWorldTest extends TestCase
{
public function testAbc()
{
$this->assertTrue(true);
}
}

34
tests/TestCase.php Normal file
View file

@ -0,0 +1,34 @@
<?php
namespace Stancl\Tenancy\Tests;
class TestCase extends \Orchestra\Testbench\TestCase
{
/**
* Setup the test environment
*
* @return void
*/
protected function setUp()
{
parent::setUp();
//
}
protected function getPackageProviders($app)
{
return [\Stancl\Tenancy\TenancyServiceProvider::class];
}
/**
* Resolve application HTTP Kernel implementation.
*
* @param \Illuminate\Foundation\Application $app
* @return void
*/
protected function resolveApplicationHttpKernel($app)
{
$app->singleton('Illuminate\Contracts\Http\Kernel', \Stancl\Tenancy\Testing\HttpKernel::class);
}
}