function BpcDisplayTestCase::assertNoDisplayExists in Commerce Bulk Product Creation 7.2
Asserts that no 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::assertNoDisplayExists()
- 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 213 - Tests for Commerce BPC display node creation
Class
- BpcDisplayTestCase
- @file Tests for Commerce BPC display node creation
Code
function assertNoDisplayExists($product_ids, $type = 'product_display') {
$this
->assertFalse($this
->displayExists($product_ids, $type), "The given products are not referenced by a display node.");
}