summaryrefslogtreecommitdiff
path: root/tests/Unit/Http/RedirectServiceProviderTest.php
blob: 9c2a07fcf8ca8e9062fd238f41a086aa5f4e0bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

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
     */
    public function testRegister()
    {
        $app = new Application();

        $serviceProvider = new RedirectServiceProvider($app);
        $serviceProvider->register();

        $this->assertTrue($app->has('redirect'));
    }
}