Skip to content

Commit

Permalink
Add doc input Reset::class. (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Feb 19, 2024
1 parent 23a8c9e commit 5e46980
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ This is particularly useful for creating forms and other interactive elements on
- [radio](/docs/form/input/Radio.md)
- [radio-list](/docs/form/input/RadioList.md)
- [range](/docs/form/input/Range.md)
- [reset](/docs/form/input/Reset.md)
- [text](/docs/form/input/Text.md)
- [time](/docs/form/input/Time.md)
- [url](/docs/form/input/Url.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/form/input/Reset.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ The following methods are available for customizing the `HTML` output:
| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Reset::class`. |
| `widget()` | Instantiates the `Reset::class`. |
|
## Label methods

Expand Down
12 changes: 0 additions & 12 deletions tests/Input/Reset/AttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,6 @@ public function testReadonly(): void
);
}

public function testRender(): void
{
Assert::equalsWithoutLE(
<<<HTML
<div>
<input id="reset-6582f2d099e8b" type="reset">
</div>
HTML,
Reset::widget()->id('reset-6582f2d099e8b')->render()
);
}

public function style(): void
{
Assert::equalsWithoutLE(
Expand Down
12 changes: 12 additions & 0 deletions tests/Input/Reset/CustomMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ public function testPrefixContainerTag(): void
);
}

public function testRender(): void
{
Assert::equalsWithoutLE(
<<<HTML
<div>
<input id="reset-6582f2d099e8b" type="reset">
</div>
HTML,
Reset::widget()->id('reset-6582f2d099e8b')->render()
);
}

public function testSuffix(): void
{
Assert::equalsWithoutLE(
Expand Down

0 comments on commit 5e46980

Please sign in to comment.