PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
vendor
/
kris
/
laravel-form-builder
/
tests
/
Fields
<?php use Kris\LaravelFormBuilder\Fields\StaticType; use Kris\LaravelFormBuilder\Form; class StaticTypeTest extends FormBuilderTestCase { /** @test */ public function it_creates_static_field() { $options = [ 'attr' => ['class' => 'static-class', 'id' => 'some_static'] ]; $this->plainForm->setModel(['some_static' => 'static text']); $static = new StaticType('some_static', 'static', $this->plainForm, $options); $static->render(); $this->assertEquals('static text', $static->getOption('value')); } }
[-] RepeatedTypeTest.php
[edit]
[+]
..
[-] EntityTypeTest.php
[edit]
[-] FormFieldTest.php
[edit]
[-] ButtonTypeTest.php
[edit]
[-] CollectionTypeTest.php
[edit]
[-] InputTypeTest.php
[edit]
[-] ChildFormTypeTest.php
[edit]
[-] ChoiceTypeTest.php
[edit]
[-] StaticTypeTest.php
[edit]