diff --git a/tests/Fields/FieldTest.php b/tests/Fields/FieldTest.php index 62c9221748..d3c0f5c05a 100644 --- a/tests/Fields/FieldTest.php +++ b/tests/Fields/FieldTest.php @@ -342,6 +342,7 @@ public function preProcess($data) 'visibility' => 'visible', 'replicator_preview' => true, 'duplicate' => true, + 'revisable' => true, 'type' => 'example', 'validate' => 'required', 'foo' => 'bar', @@ -647,4 +648,20 @@ public function it_gets_and_sets_the_form() $this->assertEquals($field, $return); $this->assertEquals($form, $field->form()); } + + #[Test] + public function it_defaults_to_revisable() + { + $field = new Field('test', ['type' => 'text']); + + $this->assertTrue($field->isRevisable()); + } + + #[Test] + public function it_gets_revisable() + { + $field = new Field('test', ['type' => 'text', 'revisable' => false]); + + $this->assertFalse($field->isRevisable()); + } }