<commit_before><?php

namespace Functional\Pyz\Zed\ProductOption\Business\Internal\DemoData\Importer;

use Codeception\TestCase\Test;
use Pyz\Zed\ProductOption\Business\ProductOptionFacade;
use Spryker\Zed\Console\Business\Model\ConsoleMessenger;
use Orm\Zed\Product\Persistence\SpyProductQuery;
use Orm\Zed\Product\Persistence\SpyProductAbstractQuery;

/**
 * @group Pyz
 * @group Zed
 * @group ProductOption
 * @group ProductOptionInstallerTest
 *
 * @method ProductOptionFacade getFacade()
 */
class ProductOptionDataInstallTest extends Test
{

    /**
     * @return void
     */
    public function testImportXmlOptions()
    {
        $messengerMock = $this->getMessengerMock();

        $this->loadProductsIfNotInDb(['136823', '137288', '137455']);

        $this->getFacade()->installDemoData($messengerMock);
    }

    /**
     * @return \PHPUnit_Framework_MockObject_MockObject|ConsoleMessenger
     */
    protected function getMessengerMock()
    {
        $messengerMock = $this->getMockBuilder(ConsoleMessenger::class)
            ->disableOriginalConstructor()
            ->getMock();
<commit_msg>#1064 fixed tests<commit_after><?php

namespace Functional\Pyz\Zed\ProductOption\Business\Internal\DemoData\Importer;

use Codeception\TestCase\Test;
use Pyz\Zed\ProductOption\Business\ProductOptionFacade;
use Spryker\Zed\Console\Business\Model\ConsoleMessenger;
use Orm\Zed\Product\Persistence\SpyProductQuery;
use Orm\Zed\Product\Persistence\SpyProductAbstractQuery;

/**
 * @group Pyz
 * @group Zed
 * @group ProductOption
 * @group ProductOptionInstallerTest
 *
 * @method ProductOptionFacade getFacade()
 */
class ProductOptionDataInstallTest extends Test
{

    /**
     * @return void
     */
    public function testImportXmlOptions()
    {
        $messengerMock = $this->getMessengerMock();

        $this->loadProductsIfNotInDb(['136823', '137288', '137455']);

        $productOptionFacade = new ProductOptionFacade();
        $productOptionFacade->installDemoData($messengerMock);
    }

    /**
     * @return \PHPUnit_Framework_MockObject_MockObject|ConsoleMessenger
     */
    protected function getMessengerMock()
    {
        $messengerMock = $this->getMockBuilder(ConsoleMessenger::class)
            ->disableOriginalConstructor()
            ->getMock();

{'fraction_non_alphanumeric': 0.11605584642233857, 'fraction_numerical': 0.017452006980802792, 'mean_word_length': 3.9206008583690988, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4160006', 'n_tokens_mistral': 738, 'n_tokens_neox': 677, 'n_words': 101}