protected function NodeRevisionDeleteQueryAlterTest::assertQueryTagTestResult in Node Revision Delete 8
Verifies invocation of the hooks in the test module.
Parameters
string $function: The name of the query alter hook function.
int $expected_invocations: The number of times the hook is expected to have been invoked.
1 call to NodeRevisionDeleteQueryAlterTest::assertQueryTagTestResult()
- 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 103
Class
- NodeRevisionDeleteQueryAlterTest
- Tests that appropriate query tags are added.
Namespace
Drupal\Tests\node_revision_delete\KernelCode
protected function assertQueryTagTestResult($function, $expected_invocations) {
$state = $this->container
->get('state');
$this
->assertEquals($expected_invocations, $state
->get($function));
}