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

Mvc\Model::snapshot data cast #14377

Merged
merged 8 commits into from
Sep 18, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated HasChangedCest
  • Loading branch information
zsilbi authored and Németh Balázs committed Sep 17, 2019
commit 4595191be99d36c6e5527f9bdcda28079e25a72f
10 changes: 10 additions & 0 deletions tests/integration/Mvc/Model/HasChangedCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ public function mvcModelHasChanged(IntegrationTester $I)
$robot->hasChanged('year')
);

$robot->year = 1900;

/**
* Testing that default value is unchanged when
* an integer is set
*/
$I->assertFalse(
$robot->hasChanged('year')
);

/**
* Any of multiple fields
*/
Expand Down