Issues (3641)

ServiceProvider/AssertionServiceProviderTest.php (1 issue)

1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerTest\Zed\Assertion\Communication\Plugin\ServiceProvider;
9
10
use Codeception\Test\Unit;
11
use Silex\Application;
12
use Spryker\Zed\Assertion\Business\AssertionFacade;
13
use Spryker\Zed\Assertion\Communication\Plugin\ServiceProvider\AssertionServiceProvider;
14
15
/**
16
 * @deprecated Will be removed without replacement.
17
 *
18
 * Auto-generated group annotations
19
 *
20
 * @group SprykerTest
21
 * @group Zed
22
 * @group Assertion
23
 * @group Communication
24
 * @group Plugin
25
 * @group ServiceProvider
26
 * @group AssertionServiceProviderTest
27
 * Add your own group annotations below this line
28
 */
29
class AssertionServiceProviderTest extends Unit
30
{
31
    /**
32
     * @return void
33
     */
34
    public function testRegisterServiceProvider(): void
35
    {
36
        $application = new Application();
37
38
        $serviceProvider = new AssertionServiceProvider();
0 ignored issues
show
Deprecated Code introduced by
The class Spryker\Zed\Assertion\Co...ssertionServiceProvider has been deprecated: Will be removed without replacement. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

38
        $serviceProvider = /** @scrutinizer ignore-deprecated */ new AssertionServiceProvider();
Loading history...
39
        $serviceProvider->register($application);
40
41
        $this->assertInstanceOf(AssertionFacade::class, $application[AssertionServiceProvider::ASSERTION]);
42
    }
43
}
44