Permalink
Browse files

Tests: bypass database

  • Loading branch information...
1 parent 3f89396 commit 02f8514d88d886f878e7eb3ceedde2d56dbdfdd2 @svivian svivian committed Apr 16, 2015
Showing with 5 additions and 0 deletions.
  1. +5 −0 qa-tests/AppUsersTest.php
@@ -12,6 +12,11 @@ class AppUsersTest extends PHPUnit_Framework_TestCase
*/
public function test__qa_permit_value_error()
{
+ // set options cache to bypass database
+ global $qa_options_cache;
+ $qa_options_cache['confirm_user_emails'] = '1';
+ $qa_options_cache['moderate_users'] = '0';
+
$userFlags = QA_USER_FLAGS_EMAIL_CONFIRMED;
$blockedFlags = QA_USER_FLAGS_EMAIL_CONFIRMED | QA_USER_FLAGS_USER_BLOCKED;

0 comments on commit 02f8514

Please sign in to comment.