Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8321775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:08:32+00:00 2026-06-08T23:08:32+00:00

My question is related with the tests for some application in Symfony2. I use

  • 0

My question is related with the tests for some application in Symfony2. I use the Behat and Mink to write the tests and I have some problems with tests for registration system.

I want to check the email after user submit the registration form and then follow the activation link in this email.

I found a short tutorial about the tests for emails:
http://docs.behat.org/cookbook/using_the_profiler_with_minkbundle.html

Solution in this tutorial works only if the “intercept_redirects” is set to “true” in configuration file for symfony but I already have some tests where I need to leave this variable with “false”, so my question is… is it possible to change this value temporary, only for one test or do I have to change this value to “true” and then update all the tests?

How do you test your registration systems, and how do you write the tests for them ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:08:34+00:00Added an answer on June 8, 2026 at 11:08 pm

    Try using MinkRedirectContext from CommonContexts. It allows you to stop automatic redirections for a scenario and inspect the URL:

    Given I do not follow redirects
     When I ...
     Then I should be redirected to "/thank-you"
    

    You could also do it manually by calling followRedirects() yourself:

    $this->getSession()->getDriver()->getClient()->followRedirects(false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question related to this one . I don't want to do
I have an application where many unit tests use a real connection to an
Not strictly a programming question, but definately programming related. The option to run tests
Another question related to this one . I have a List<SortableObjects> that is the
I have a modeling question related to profiles. Firstly, I have looked into using
I have a question regarding the threads that my application spawns during execution and
This maybe a related question: Java assignment issues - Is this atomic? I have
This is closely related to anothewr question I have asked but since this is
My question is, do JVM's share some kind of resource related to threading or
I'm currently trying to workaround some apparent shortcomings of cocoa touch application tests in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.