Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Conversation

@eisfeuer
Copy link
Contributor

@eisfeuer eisfeuer commented Aug 3, 2020

Currently assertEqualsModel checks hidden values. That's bad when I want to test the output from a resource where hidden attributes will not be sent.

eisfeuer and others added 2 commits August 3, 2020 14:55
Currently assertEqualsModel checks hiddel values. That's bad when I want to test the output from a resource where hidden attributes will not be sent.
@Gummibeer
Copy link
Contributor

Ich würde das ganze wahrscheinlich gar nicht steuerbar machen. Hidden values sind in den meisten Fällen sowieso gehasht oder encrypted. Also sowieso nicht wirklich über einen simples string Vergleich miteinander vergleichbar. Wenn ich also den Bedarf habe diese zu vergleichen - z.B. bei den Recovery Codes dann muss sehr wahrscheinlich ein check à la assertTrue(Hash::check($password, $hash)) genutzt werden.
Die Anpassungen wären dann auch nur Arr::except($expected->getFillable(), $expected->getHidden()).

@Gummibeer Gummibeer added the enhancement New feature or request label Aug 4, 2020
@Gummibeer Gummibeer requested a review from a team August 4, 2020 09:02
…om:elbgoods/ci-test-tools into feature/disable_consider_hidden_attributes
@Gummibeer Gummibeer requested a review from a team August 4, 2020 10:30
@Gummibeer Gummibeer merged commit 9b6c766 into master Aug 4, 2020
@Gummibeer Gummibeer deleted the feature/disable_consider_hidden_attributes branch August 4, 2020 15:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants