We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97a4cbf commit 4abfe61Copy full SHA for 4abfe61
1 file changed
tests/system/EntityTest.php
@@ -664,6 +664,15 @@ public function testHasChangedNoChange()
664
$this->assertFalse($entity->hasChanged('default'));
665
}
666
667
+ public function testHasChangedWholeEntity()
668
+ {
669
+ $entity = $this->getEntity();
670
+
671
+ $entity->foo = 'bar';
672
673
+ $this->assertTrue($entity->hasChanged());
674
+ }
675
676
protected function getEntity()
677
{
678
return new class extends Entity
0 commit comments