Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[11.x] Add additional test cases for Arr helper to enhance coverage #54298

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

mrvipchien
Copy link
Contributor

This PR adds new test cases for the Arr helper to improve test coverage. The changes include:

  1. Arr::add(): Add cases where key already exists
  2. Arr::collapse(): Remove duplicate case
  3. Arr::get(): Add cases where array has a empty key
  4. Arr::isList(): Add cases with negative keys
  5. Arr::only(): Add cases with numeric keys
  6. Arr::select(): Add cases with null / non-exists $keys

@taylorotwell taylorotwell merged commit d065f94 into laravel:11.x Jan 22, 2025
38 checks passed
@mrvipchien mrvipchien deleted the arr-test branch February 5, 2025 16:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants