Quellcode durchsuchen

disable promo codes before running registration test

tags/v1.4.37
Jonathan Cobb vor 3 Jahren
Ursprung
Commit
be955aab67
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. +5
    -1
      bubble-server/src/test/java/bubble/test/system/AuthTest.java

+ 5
- 1
bubble-server/src/test/java/bubble/test/system/AuthTest.java Datei anzeigen

@@ -4,6 +4,7 @@
*/
package bubble.test.system;

import bubble.auth.PromoCodePolicy;
import bubble.dao.account.AccountDAO;
import bubble.model.account.Account;
import bubble.test.ActivatedBubbleModelTestBase;
@@ -27,7 +28,10 @@ public class AuthTest extends ActivatedBubbleModelTestBase {
@Test public void testBasicAuth () throws Exception { modelTest("auth/basic_auth"); }
@Test public void testAccountCrud () throws Exception { modelTest("auth/account_crud"); }
@Test public void testDeviceCrud () throws Exception { modelTest("auth/device_crud"); }
@Test public void testRegistration () throws Exception { modelTest("auth/account_registration"); }
@Test public void testRegistration () throws Exception {
getConfiguration().setPromoCodePolicy(PromoCodePolicy.disabled); // ensure promos are disabled
modelTest("auth/account_registration");
}
@Test public void testForgotPassword () throws Exception { modelTest("auth/forgot_password"); }
@Test public void testChangePassword () throws Exception { modelTest("auth/change_password"); }
@Test public void testChangeAdminPassword () throws Exception { modelTest("auth/change_admin_password"); }


Laden…
Abbrechen
Speichern