Skip to content

Commit bd481cb

Browse files
committed
WIP
1 parent 39bf5be commit bd481cb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/JsonEntryFieldTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
expect($field->getHasFoldingCode())->toBe(true);
1515
});
1616

17+
it('can have folded code ', function () {
18+
$field = JsonEntry::make('json');
19+
20+
expect($field->getHasFoldedCode())->toBe(false);
21+
22+
$field->foldedCode(false);
23+
expect($field->getHasFoldedCode())->toBe(false);
24+
25+
$field->foldedCode(true);
26+
expect($field->getHasFoldedCode())->toBe(true);
27+
});
28+
1729
it('can have auto closing brackets code ', function () {
1830
$field = JsonEntry::make('json');
1931

tests/JsonInputFieldTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
expect($field->getHasFoldingCode())->toBe(true);
1515
});
1616

17+
it('can have folded code ', function () {
18+
$field = JsonInput::make('json');
19+
20+
expect($field->getHasFoldedCode())->toBe(false);
21+
22+
$field->foldedCode(false);
23+
expect($field->getHasFoldedCode())->toBe(false);
24+
25+
$field->foldedCode(true);
26+
expect($field->getHasFoldedCode())->toBe(true);
27+
});
28+
1729
it('can have auto closing brackets code ', function () {
1830
$field = JsonInput::make('json');
1931

0 commit comments

Comments
 (0)