You are here

protected function NodeRevisionDeleteQueryAlterTest::setupQueryTagTestHooks in Node Revision Delete 8

Sets up the hooks in the test module.

1 call to NodeRevisionDeleteQueryAlterTest::setupQueryTagTestHooks()
NodeRevisionDeleteQueryAlterTest::testNodeRevisionDeleteQueryAlter in tests/src/Kernel/NodeRevisionDeleteQueryAlterTest.php
Tests that appropriate tags are added when querying the database.

File

tests/src/Kernel/NodeRevisionDeleteQueryAlterTest.php, line 86

Class

NodeRevisionDeleteQueryAlterTest
Tests that appropriate query tags are added.

Namespace

Drupal\Tests\node_revision_delete\Kernel

Code

protected function setupQueryTagTestHooks() {
  $state = $this->container
    ->get('state');
  $state
    ->set('node_revision_delete_test_query_node_revision_delete_candidates_alter', 0);
  $state
    ->set('node_revision_delete_test_query_node_revision_delete_candidates_article_alter', 0);
  $state
    ->set('node_revision_delete_test_query_node_revision_delete_candidate_revisions_alter', 0);
  $state
    ->set('node_revision_delete_test_query_node_revision_delete_candidate_revisions_article_alter', 0);
}