You are here

public function RelationRulesTest::testRelationLoadRelatedRules in Relation 8

Same name and namespace in other branches
  1. 8.2 src/Tests/RelationRulesTest.php \Drupal\relation\Tests\RelationRulesTest::testRelationLoadRelatedRules()

TODO.

File

src/Tests/RelationRulesTest.php, line 142

Class

RelationRulesTest
Relation Rules integration.

Namespace

Drupal\relation\Tests

Code

public function testRelationLoadRelatedRules() {

  /*
  if (module_exists('rules')) {
    $nid = $this->node1->nid;
    variable_set('relation_rules_test_nid', $nid);
    module_enable(array('relation_rules_test'));
    $this->node6 = $this->drupalCreateNode(array('type' => 'article'));
    for ($i = 1; $i <= 6; $i++) {
      $property = "node$i";
      $node = $this->$property;
      if ($node->nid == $nid) {
        $this->assertFalse((bool) \Drupal::database()->queryRange('SELECT * FROM {node} WHERE nid = :nid', 0, 1, array(':nid' => $nid))->fetchField(), t('The correct node was deleted'));
      }
      else {
        $nids[] = $node->nid;
      }
    }
    $count = count($nids);
    $this->assertEqual($count, \Drupal::database()->query('SELECT COUNT(*) FROM {node} WHERE nid IN (:nids)', array(':nids' => $nids))->fetchField(), t('@count other nodes were found', array('@count' => $count)));
  }
  */
}