Problem/Motivation
There is an old code in StatisticsLoggingTest::setUp()
function, which is supposed to truncate data in node_counter
table. But the statement is missing the execute()
call, so this trucate is not working currently.
// Clear the logs.
Database::getConnection()->truncate('node_counter');
There are two options - fix the truncate, or remove it entirely. It seems like it is not needed, as it is not causing any test failures. Therefore I think it will be feasible to remove it entirely.
Steps to reproduce
Proposed resolution
Fix the truncate call, or remove it entirely.