-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows to enable Ecotone Enterprise Features (#385)
* Add ability to set up Symfony, Laravel and Ecotone Lite with Enterprise features
- Loading branch information
Showing
45 changed files
with
1,105 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Test\Ecotone\Laravel\Licence; | ||
|
||
use App\MultiTenant\Application\Command\RegisterCustomer; | ||
use Ecotone\Modelling\CommandBus; | ||
use Ecotone\Modelling\QueryBus; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\Foundation\Http\Kernel; | ||
use Illuminate\Support\Facades\Artisan; | ||
use Illuminate\Support\Facades\DB; | ||
use PHPUnit\Framework\TestCase; | ||
use RuntimeException; | ||
|
||
/** | ||
* licence Enterprise | ||
* @internal | ||
*/ | ||
final class LicenceTest extends TestCase | ||
{ | ||
private Application $app; | ||
private QueryBus $queryBus; | ||
private CommandBus $commandBus; | ||
|
||
public function setUp(): void | ||
{ | ||
$app = require __DIR__ . '/bootstrap/app.php'; | ||
$app->make(Kernel::class)->bootstrap(); | ||
$this->app = $app; | ||
$this->queryBus = $app->get(QueryBus::class); | ||
$this->commandBus = $app->get(CommandBus::class); | ||
} | ||
|
||
public function test_triggering_laravel_with_licence_key(): void | ||
{ | ||
$this->commandBus->sendWithRouting('sendNotification'); | ||
|
||
$this->expectNotToPerformAssertions(); | ||
} | ||
} |
Oops, something went wrong.