From 6bf1309d12f93f27bdc132468bb13bc90b90b495 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 22 Feb 2020 16:30:53 +0100 Subject: [PATCH] Add a test for escapeString Signed-off-by: William Desportes --- test/classes/Dbi/DbiDummyTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/classes/Dbi/DbiDummyTest.php b/test/classes/Dbi/DbiDummyTest.php index 418f3594a0..82de9d899f 100644 --- a/test/classes/Dbi/DbiDummyTest.php +++ b/test/classes/Dbi/DbiDummyTest.php @@ -135,4 +135,17 @@ class DbiDummyTest extends TestCase ], ]; } + + /** + * Test for string escaping + * + * @return void + */ + public function testEscapeString(): void + { + $this->assertEquals( + 'a', + $GLOBALS['dbi']->escapeString('a') + ); + } }