Skip to content

Commit

Permalink
Tests: bypass database
Browse files Browse the repository at this point in the history
  • Loading branch information
svivian committed Apr 16, 2015
1 parent 3f89396 commit 02f8514
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qa-tests/AppUsersTest.php
Expand Up @@ -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;

Expand Down

0 comments on commit 02f8514

Please sign in to comment.