[BUGFIX] Fix UnitTests for t3lib_div::validPathStr
authorAndy Grunwald <andygrunwald@gmail.com>
Tue, 3 Jul 2012 21:29:43 +0000 (23:29 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 4 Jul 2012 08:25:25 +0000 (10:25 +0200)
The change in #38604 introduced failing UnitTests
for t3lib_div::validPathStr, because we changed
the return value to real boolean.
The UnitTest was checked about a NULL value.
With the change in #38604, we return FALSE.

Change-Id: I8d7203564401f0add45fbdbaa7e0b371d57e5b7d
Fixes: #38613
Releases: 6.0
Reviewed-on: http://review.typo3.org/12561
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
tests/Unit/t3lib/class.t3lib_divTest.php

index 37d06f8..39ac342 100644 (file)
@@ -3985,7 +3985,7 @@ class t3lib_divTest extends tx_phpunit_testcase {
         * @test
         */
        public function validPathStrDetectsInvalidCharacters($path) {
-               $this->assertNull(t3lib_div::validPathStr($path));
+               $this->assertFalse(t3lib_div::validPathStr($path));
        }
 
        /**