2019-11-27 19:11:37 +01:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-11-27 19:11:37 +01:00
|
|
|
namespace Engelsystem\Test\Unit\Http;
|
|
|
|
|
|
|
|
use Engelsystem\Application;
|
|
|
|
use Engelsystem\Http\RedirectServiceProvider;
|
|
|
|
use Engelsystem\Test\Unit\ServiceProviderTest;
|
|
|
|
|
|
|
|
class RedirectServiceProviderTest extends ServiceProviderTest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @covers \Engelsystem\Http\RedirectServiceProvider::register
|
|
|
|
*/
|
2022-12-14 19:15:20 +01:00
|
|
|
public function testRegister(): void
|
2019-11-27 19:11:37 +01:00
|
|
|
{
|
|
|
|
$app = new Application();
|
|
|
|
|
|
|
|
$serviceProvider = new RedirectServiceProvider($app);
|
|
|
|
$serviceProvider->register();
|
|
|
|
|
|
|
|
$this->assertTrue($app->has('redirect'));
|
|
|
|
}
|
|
|
|
}
|