-
Notifications
You must be signed in to change notification settings - Fork 28
[REST] Module does not reset client before each request #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you sure that you haven't missed a leading |
Absolutely sure |
What version of Codeception are you using? |
Sorry for not providing the version at the first place. |
@Naktibalda any thoughts so far? I think we need to reset the client inside REST module before each sendPOST, sendGET and other send* methods. |
Works for me. I have tried to reproduce your issue: Naktibalda/codeception-symfony-tests@11e34fb $I->sendGET('/posts/1');
$I->seeResponseEquals('Show Post Codeception/Codeception#1');
$I->sendPOST('/doctrine/create-user',['name' => 'John']);
$I->seeResponseEquals('User created');
$I->seeCurrentUrlEquals('/doctrine/create-user'); but I got expected result:
|
There was a similar issue report before: Codeception/Codeception#2987 |
Hej there, |
What are you trying to achieve?
I write a test which makes several request
What do you get instead?
When I call
$I->sendGET('/my/url/test');
it goes to '/my/url/my/url/test' instead of '/my/url/test'I use REST as follows:
The text was updated successfully, but these errors were encountered: