Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #2507 [TwigComponent][Docs] add explicit string cast on string …
…assertions (Valmonzo) This PR was merged into the 2.x branch. Discussion ---------- [TwigComponent][Docs] add explicit string cast on string assertions | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Following the examples from the documentation, I realized that if we use the `TestLiveComponent::render` method in `assertStringContainsString` and if we use strict types, then it throw an error because we try to assert a `RenderedComponent` object instead of a string. I think that explicitly adding the cast can help. Commits ------- 1a77c94 [TwigComponent][Docs] add explicit string cast on string assertions
- Loading branch information