Skip to content

Commit 7a8b9cb

Browse files
author
Ivan Gavryshko
committed
MAGETWO-37728: Skip-reindex param/feature was lost in generator
- added changes according to CR comments
1 parent afb339d commit 7a8b9cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setup/src/Magento/Setup/Test/Unit/Console/Command/GenerateFixturesCommandTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,12 @@ public function testExecuteInvalidLanguageArgument()
4848
$commandTester = new CommandTester($this->command);
4949
$commandTester->execute([]);
5050
}
51+
52+
public function testSkipReindexOption()
53+
{
54+
$this->fixtureModel->expects($this->never())->method('reindex');
55+
56+
$commandTester = new CommandTester($this->command);
57+
$commandTester->execute(['profile' => 'path_to_profile.xml', '--skip-reindex' => true]);
58+
}
5159
}

0 commit comments

Comments
 (0)