Skip to content

Commit

Permalink
Updated HasChangedCest
Browse files Browse the repository at this point in the history
  • Loading branch information
zsilbi authored and Németh Balázs committed Sep 17, 2019
1 parent 2743759 commit 4595191
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 4595191

Please sign in to comment.