Files
php-flasher/tests/Noty/Symfony/FlasherNotySymfonyBundleTest.php
T
2024-05-27 00:34:47 +01:00

43 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
namespace Flasher\Tests\Noty\Symfony;
use Flasher\Noty\Prime\NotyPlugin;
use Flasher\Noty\Symfony\FlasherNotySymfonyBundle;
use Flasher\Symfony\Support\PluginBundle;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use PHPUnit\Framework\TestCase;
final class FlasherNotySymfonyBundleTest extends TestCase
{
use MockeryPHPUnitIntegration;
private FlasherNotySymfonyBundle $flasherNotyBundle;
protected function setUp(): void
{
parent::setUp();
$this->flasherNotyBundle = new FlasherNotySymfonyBundle();
}
public function testInstance(): void
{
$this->assertInstanceOf(PluginBundle::class, $this->flasherNotyBundle);
}
public function testCreatePlugin(): void
{
$this->assertInstanceOf(NotyPlugin::class, $this->flasherNotyBundle->createPlugin());
}
public function testGetConfigurationFileReturnsExpectedPath(): void
{
$expectedPath = $this->flasherNotyBundle->getPath().'/Resources/config/config.yaml';
$this->assertSame($expectedPath, $this->flasherNotyBundle->getConfigurationFile());
}
}