fix test by using a different variable (one that is still, but shouldn't be, config...
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 9 Jul 2014 22:45:41 +0000 (10:45 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 9 Jul 2014 22:45:41 +0000 (10:45 +1200)
tests/phpunit/api/v3/SettingTest.php

index 61d1405c4f71cfa1f2cb0d511cadb8ae1f7c19f5..261676a7e9e293b80db93190cbd3f2548fb7bffb 100644 (file)
@@ -410,7 +410,7 @@ class api_v3_SettingTest extends CiviUnitTestCase {
     CRM_Core_BAO_Domain::resetDomain();
     $this->assertTrue($config->debug == 1);
     // this should NOT be stored in the settings table now - only in config
-    $sql = " SELECT count(*) as c FROM civicrm_setting WHERE name LIKE '%debug%'";
+    $sql = " SELECT count(*) as c FROM civicrm_setting WHERE name LIKE '%maxFileSize%'";
     $dao = CRM_Core_DAO::executeQuery($sql);
     $dao->fetch();
     $this->assertEquals($dao->c, 0);