Skip to content

[DX] Proposal: Abstraction layer for functionnal testing #12274

@tgalopin

Description

@tgalopin

Hello everyone!

This issue is a proposal: it's an idea I give because I implemented it and I find it useful. I would like to share it and ask opinions as I think it would be a great improvement in Symfony2 tests usage.

The problem

The testing capabilities of Symfony are very useful, especially when it comes to functonnal testing.
It promotes testing in PHP applications and it's great.

However, I think there is a problem with the current implementation: it too low-level (and Behat is much too complex to set up for beginners).

The classic example is the authentication in tests: the doc is great but let's be honest, having to include 10 lines of obscure code is not really easy and intuitive.

The idea

The idea is to implement useful helpers in WebTestCase class. For the moment, the helpers I can think of would be:

It is an idea to debate. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions