Skip to content

[6.x] Add test for event payload of type object#31477

Merged
taylorotwell merged 1 commit intolaravel:6.xfrom
imanghafoori1:add_payload_test
Feb 14, 2020
Merged

[6.x] Add test for event payload of type object#31477
taylorotwell merged 1 commit intolaravel:6.xfrom
imanghafoori1:add_payload_test

Conversation

@imanghafoori1
Copy link
Copy Markdown
Contributor

@imanghafoori1 imanghafoori1 commented Feb 14, 2020

Currently, we do not have any tests for events of type objects to check that their payload is not the second parameter passed to the dispatch method, but it is the event object itself.

In other words, this part of the framework can be ruined undetected.
image

@GrahamCampbell GrahamCampbell changed the title [6.x] Add test for event payload of type object. [6.x] Add test for event payload of type object Feb 14, 2020
@taylorotwell taylorotwell merged commit 4be35a5 into laravel:6.x Feb 14, 2020
@imanghafoori1 imanghafoori1 deleted the add_payload_test branch February 14, 2020 21:43
voku added a commit to voku/framework that referenced this pull request Feb 15, 2020
* upstream/master: (78 commits)
  [7.x] Implement anonymous components (laravel#31363)
  Apply fixes from StyleCI (laravel#31480)
  Apply fixes from StyleCI (laravel#31479)
  revert broken table feature
  move files
  add test for event payload of type object (laravel#31477)
  [7.x] Refactor route caching (laravel#31188)
  [6.x] Fixes appendRow on console table (laravel#31469)
  Apply fixes from StyleCI (laravel#31474)
  formatting
  Throw exception on empty collection (laravel#31471)
  Add tests for Query Builder when array value given (laravel#31464)
  Remove addHidden method (laravel#31463)
  allow afterResponse chain
  add getRawOriginal
  Remove unused use-statement
  Update comment
  [6.x] Change MySql nullable modifier to allow generated columns to be not null (laravel#31452)
  [6.x] Test for pushed events (laravel#31451)
  Fixed phpdoc
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants