You are here

function BpcDisplayTestCase::assertDisplayExists in Commerce Bulk Product Creation 7.2

Asserts that a display node exists that references all and only all the given products.

Parameters

array $product_ids: An array of product ids that should be referenced by the display node.

string $type: (optional) The node type to which the search should be restricted. Defaults to 'product_display'.

2 calls to BpcDisplayTestCase::assertDisplayExists()
BpcDisplayTestCase::testOneToOneNodeCreation in modules/bpc_display/bpc_display.test
Tests the automatic creation of a one display node per product.
BpcDisplayTestCase::testSingleNodeCreation in modules/bpc_display/bpc_display.test
Tests the automatic creation of a single display node.

File

modules/bpc_display/bpc_display.test, line 197
Tests for Commerce BPC display node creation

Class

BpcDisplayTestCase
@file Tests for Commerce BPC display node creation

Code

function assertDisplayExists($product_ids, $type = 'product_display') {
  $this
    ->assertTrue($this
    ->displayExists($product_ids, $type), "The created products are referenced by a display node.");
}