tests/unit/EmailTest.php 1 location
|
@@ 33-42 (lines=10) @@
|
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** @test */ |
| 33 |
|
public function it_can_fill_model_values() |
| 34 |
|
{ |
| 35 |
|
$model = $this->model(['foo'=>'']); |
| 36 |
|
|
| 37 |
|
$form = $this->form(); |
| 38 |
|
$form->email('foo')->default('bar'); |
| 39 |
|
$form->fill($model); |
| 40 |
|
|
| 41 |
|
$form->assertEquals($model->foo, 'bar'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** @test */ |
| 45 |
|
public function it_escapes_value() |
tests/unit/NumberTest.php 1 location
|
@@ 33-42 (lines=10) @@
|
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** @test */ |
| 33 |
|
public function it_can_fill_model_values() |
| 34 |
|
{ |
| 35 |
|
$model = $this->model(['foo'=>'']); |
| 36 |
|
|
| 37 |
|
$form = $this->form(); |
| 38 |
|
$form->number('foo')->default('bar'); |
| 39 |
|
$form->fill($model); |
| 40 |
|
|
| 41 |
|
$form->assertEquals($model->foo, 'bar'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** @test */ |
| 45 |
|
public function it_escapes_value() |
tests/unit/ParagraphTextTest.php 1 location
|
@@ 35-44 (lines=10) @@
|
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** @test */ |
| 35 |
|
public function it_can_fill_model_values() |
| 36 |
|
{ |
| 37 |
|
$model = $this->model(['foo'=>'']); |
| 38 |
|
|
| 39 |
|
$form = $this->form(); |
| 40 |
|
$form->paragraph_text('foo')->default('bar'); |
| 41 |
|
$form->fill($model); |
| 42 |
|
|
| 43 |
|
$form->assertEquals($model->foo, 'bar'); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** @test */ |
| 47 |
|
public function it_escapes_value() |
tests/unit/TextTest.php 1 location
|
@@ 33-42 (lines=10) @@
|
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** @test */ |
| 33 |
|
public function it_can_fill_model_values() |
| 34 |
|
{ |
| 35 |
|
$model = $this->model(['foo'=>'']); |
| 36 |
|
|
| 37 |
|
$form = $this->form(); |
| 38 |
|
$form->text('foo')->default('bar'); |
| 39 |
|
$form->fill($model); |
| 40 |
|
|
| 41 |
|
$form->assertEquals($model->foo, 'bar'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** @test */ |
| 45 |
|
public function it_escapes_value() |