Quellcode durchsuchen

#2028 Profanity Filter - fixing tests

Alex Trofimov vor 7 Jahren
Ursprung
Commit
c2a0076222

+ 2 - 1
tests/units/modules/boonex/antispam/classes/BxAntispamModuleTest.php

@@ -94,7 +94,8 @@ class BxAntispamModuleTest extends BxDolTestCase
         }
 
         // check result boolean value
-        $this->assertEquals($bRes, $this->_oModule->serviceIsSpam($this->anything(), $this->_sSampleIP));
+        $sContent = $this->anything();
+        $this->assertEquals($bRes, $this->_oModule->serviceIsSpam($sContent, $this->_sSampleIP));
     }
 
     public function providerForServiceCheckJoin()