You are here

public function SearchByPageTesterTest::search_by_page_test_node_delete in Search by Page 8

Implements hook_node_delete().

Manage the "private" flag on nodes. Code taken form the Node Access Example module on drupal.org.

File

tests/src/Functional/SearchByPageTesterTest.php, line 283
General Functional Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com

Class

SearchByPageTesterTest
Base class for testing Search by Page.

Namespace

Drupal\Tests\search_by_page\Functional

Code

public function search_by_page_test_node_delete($node) {
  \Drupal::database()
    ->delete('search_by_page_test_access')
    ->condition('nid', $node->nid)
    ->execute();
}