Skip to content
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

Error in tests #641

Open
Yeleup opened this issue Dec 2, 2023 · 1 comment
Open

Error in tests #641

Yeleup opened this issue Dec 2, 2023 · 1 comment

Comments

@Yeleup
Copy link

Yeleup commented Dec 2, 2023

if I do this the tests pass
$id = $response ->assertCreatedWithServerId(null, $data) ->id();

but if I change the tests as in the documentation the tests do not work
$id = $response ->assertCreatedWithServerId('http://localhost:8100/api/v1/items', $data) ->id();

tests do not work and an error is written
image

@lindyhopchris
Copy link
Member

Hi! There are multiple tests in this package that are doing the following:

$response->assertCreatedWithServerId(url('/api/v1/posts'), $data)

Which is exactly this scenario. All of them are passing.

Can you provide the full code of your test? Plus confirm that you aren't doing anything custom in the relevant controller for this resource?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants