Loading tests/src/Functional/CommerceDevelGenerateCommandTest.php +11 −3 Original line number Diff line number Diff line Loading @@ -41,11 +41,19 @@ class CommerceDevelGenerateCommandTest extends BrowserTestBase { // Creates commerce entities With out Kill Option. $options = [ 'products_num' => 55, 'kill' => NULL, 'products_num' => 55, 'product_types_num' => 1, 'product_variations_num' => 1, 'product_price_from' => 1, 'product_price_max' => 100, 'orders_num' => 50, 'time_range' => 604800, 'order_statuses' => 'completed', ]; $this->drush('devel-generate:commerce', $options); $commerce_entities = \Drupal::entityQuery('commerce')->accessCheck(TRUE)->execute(); $this->drush('devel-generate:commerce', [], $options); $commerce_entities = \Drupal::entityQuery('commerce_product')->accessCheck(TRUE)->execute(); $this->assertCount(55, $commerce_entities); $messages = $this->getErrorOutput(); $this->assertStringContainsStringIgnoringCase('Finished 55 elements created successfully.', $messages, 'devel-generate:commerce batch ending message not found'); Loading Loading
tests/src/Functional/CommerceDevelGenerateCommandTest.php +11 −3 Original line number Diff line number Diff line Loading @@ -41,11 +41,19 @@ class CommerceDevelGenerateCommandTest extends BrowserTestBase { // Creates commerce entities With out Kill Option. $options = [ 'products_num' => 55, 'kill' => NULL, 'products_num' => 55, 'product_types_num' => 1, 'product_variations_num' => 1, 'product_price_from' => 1, 'product_price_max' => 100, 'orders_num' => 50, 'time_range' => 604800, 'order_statuses' => 'completed', ]; $this->drush('devel-generate:commerce', $options); $commerce_entities = \Drupal::entityQuery('commerce')->accessCheck(TRUE)->execute(); $this->drush('devel-generate:commerce', [], $options); $commerce_entities = \Drupal::entityQuery('commerce_product')->accessCheck(TRUE)->execute(); $this->assertCount(55, $commerce_entities); $messages = $this->getErrorOutput(); $this->assertStringContainsStringIgnoringCase('Finished 55 elements created successfully.', $messages, 'devel-generate:commerce batch ending message not found'); Loading