You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Flasher\Tests\SweetAlert\Symfony;
|
|
|
|
use Flasher\SweetAlert\Prime\SweetAlertPlugin;
|
|
use Flasher\SweetAlert\Symfony\FlasherSweetAlertSymfonyBundle;
|
|
use Flasher\Symfony\Support\PluginBundle;
|
|
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class FlasherSweetAlertSymfonyBundleTest extends TestCase
|
|
{
|
|
use MockeryPHPUnitIntegration;
|
|
|
|
private FlasherSweetAlertSymfonyBundle $flasherSweetAlertBundle;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->flasherSweetAlertBundle = new FlasherSweetAlertSymfonyBundle();
|
|
}
|
|
|
|
public function testInstance(): void
|
|
{
|
|
$this->assertInstanceOf(PluginBundle::class, $this->flasherSweetAlertBundle);
|
|
}
|
|
|
|
public function testCreatePlugin(): void
|
|
{
|
|
$this->assertInstanceOf(SweetAlertPlugin::class, $this->flasherSweetAlertBundle->createPlugin());
|
|
}
|
|
|
|
public function testGetConfigurationFileReturnsExpectedPath(): void
|
|
{
|
|
$expectedPath = $this->flasherSweetAlertBundle->getPath().'/Resources/config/config.yaml';
|
|
|
|
$this->assertSame($expectedPath, $this->flasherSweetAlertBundle->getConfigurationFile());
|
|
}
|
|
}
|