protected function EntitySelectWidgetTest::createStores in Commerce Core 8.2
Creates stores.
Parameters
string $num_stores: The number of stores to create.
1 call to EntitySelectWidgetTest::createStores()
- EntitySelectWidgetTest::testWidget in tests/
src/ Functional/ EntitySelectWidgetTest.php - Tests widget's hidden input type.
File
- tests/
src/ Functional/ EntitySelectWidgetTest.php, line 169
Class
- EntitySelectWidgetTest
- Tests the Entity select widget.
Namespace
Drupal\Tests\commerce\FunctionalCode
protected function createStores($num_stores) {
for ($i = 0; $i < $num_stores; $i++) {
$this->stores[] = $this
->createStore();
}
}