17 private $fixtureModelMock;
29 $this->fixtureModelMock = $this->getMockBuilder(\
Magento\Setup\Fixtures\FixtureModel::class)
30 ->disableOriginalConstructor()
32 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
37 'fixtureModel' => $this->fixtureModelMock
49 $dir = str_replace(
'Test/Unit/',
'', dirname(
__DIR__));
51 'simple_count_to' => 1,
52 'simple_count_from' => 1,
53 'configurable_count_to' => 1,
54 'configurable_count_from' => 1,
55 'big_configurable_count_to' => 1,
56 'big_configurable_count_from' => 1,
57 'fixture_data_filename' =>
58 $dir . DIRECTORY_SEPARATOR .
"_files" . DIRECTORY_SEPARATOR .
'orders_fixture_data.json',
59 'order_quotes_enable' => 1,
61 $this->fixtureModelMock->expects($this->atLeastOnce())
64 [
'order_simple_product_count_to'],
65 [
'order_simple_product_count_from'],
66 [
'order_configurable_product_count_to'],
67 [
'order_configurable_product_count_from'],
68 [
'order_big_configurable_product_count_to'],
69 [
'order_big_configurable_product_count_from'],
70 [
'order_quotes_enable',]
72 $this->assertSame($expectedResult, $this->fixture->load()->getData());
defined('TESTS_BP')||define('TESTS_BP' __DIR__