plugin = $this->getPlugin([], [ 'function' => 'db_select' ]); } public function testRewriteDBSelectAllowedTable() { $function_call = Parser::parseExpression('db_select("session")'); $this->assertSame($function_call, $this->plugin->rewrite($function_call, $this->target)); } public function testRewriteDBSelectForbiddenTable() { $function_call = Parser::parseExpression('db_select("variable")'); $this->assertNull($this->plugin->rewrite($function_call, $this->target)); } }