Fixed bug #17490: After introducing the locking in #17289 no CSRF token will ever...
[Packages/TYPO3.CMS.git] / tests / t3lib / t3lib_dbTest.php
index 78ba48c..7c2271f 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
 * Copyright notice
 *
-* (c) 2010 Ernesto Baschny (ernst@cron-it.de)
+* (c) 2010-2011 Ernesto Baschny (ernst@cron-it.de)
 * All rights reserved
 *
 * This script is part of the TYPO3 project. The TYPO3 project is
@@ -135,5 +135,19 @@ class t3lib_dbTest extends tx_phpunit_testcase {
                );
        }
 
+
+       /////////////////////////////////////////////////
+       // Tests concerning escapeStringForLikeComparison
+       /////////////////////////////////////////////////
+
+       /**
+        * @test
+        */
+       public function escapeStringForLikeComparison() {
+               $this->assertEquals(
+                       'foo\_bar\%',
+                       $this->fixture->escapeStrForLike('foo_bar%', 'table')
+               );
+       }
 }
 ?>
\ No newline at end of file