Issues (3641)

CmsProductSearchContentWidgetPluginTest.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\Yves\CmsContentWidgetProductSetConnector\Business;
9
10
use Codeception\Test\Unit;
11
use Spryker\Shared\CmsContentWidget\Dependency\CmsContentWidgetConfigurationProviderInterface;
12
use Spryker\Yves\CmsContentWidget\Dependency\CmsContentWidgetPluginInterface;
13
use Spryker\Yves\CmsContentWidgetProductSearchConnector\Plugin\CmsProductSearchContentWidgetPlugin;
14
15
/**
16
 * Auto-generated group annotations
17
 *
18
 * @group SprykerTest
19
 * @group Yves
20
 * @group CmsContentWidgetProductSetConnector
21
 * @group Business
22
 * @group CmsProductSearchContentWidgetPluginTest
23
 * Add your own group annotations below this line
24
 */
25
class CmsProductSearchContentWidgetPluginTest extends Unit
26
{
27
    /**
28
     * @return void
29
     */
30
    public function testCmsProductSearchContentWidgetPluginCreated(): void
31
    {
32
        $plugin = new CmsProductSearchContentWidgetPlugin(
0 ignored issues
show
Deprecated Code introduced by
The class Spryker\Yves\CmsContentW...archContentWidgetPlugin has been deprecated: Will be removed without replacement. This functionality is obsolete and should not be used. ( Ignorable by Annotation )

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

32
        $plugin = /** @scrutinizer ignore-deprecated */ new CmsProductSearchContentWidgetPlugin(
Loading history...
33
            $this->createCmsContentWidgetConfigurationProviderMock(),
34
        );
35
36
        $this->assertInstanceOf(CmsContentWidgetPluginInterface::class, $plugin);
37
    }
38
39
    /**
40
     * @return \PHPUnit\Framework\MockObject\MockObject|\Spryker\Shared\CmsContentWidget\Dependency\CmsContentWidgetConfigurationProviderInterface
41
     */
42
    protected function createCmsContentWidgetConfigurationProviderMock(): CmsContentWidgetConfigurationProviderInterface
43
    {
44
        return $this->getMockBuilder(CmsContentWidgetConfigurationProviderInterface::class)->getMock();
45
    }
46
}
47