function BpcDisplayTestCase::testOneToOneNodeCreation in Commerce Bulk Product Creation 7.2
Tests the automatic creation of a one display node per product.
File
- modules/
bpc_display/ bpc_display.test, line 171 - Tests for Commerce BPC display node creation
Class
- BpcDisplayTestCase
- @file Tests for Commerce BPC display node creation
Code
function testOneToOneNodeCreation() {
$this
->setDisplaySetting(array(
'creation_method' => 'onetoone',
'auto_node_title_pattern' => 'Title: [bulk_defaults:entered_title]',
'auto_content_type' => 'product_display',
));
$this
->drupalGet($this->bulkUrl);
$this
->assertNoText('Create Products and Create Display');
$this
->submitBulkForm();
$this
->assertUrl('admin/commerce/products');
$this
->assertNoDisplayExists(array(
1,
2,
));
$this
->assertDisplayExists(array(
1,
));
$this
->assertDisplayExists(array(
2,
));
}