tests/unit/FormTest.php 1 location
|
@@ 91-98 (lines=8) @@
|
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
/** @test */ |
| 91 |
|
public function it_fetches_values_for_a_complex_field() |
| 92 |
|
{ |
| 93 |
|
$form = $this->form(); |
| 94 |
|
$form->name('foo'); |
| 95 |
|
|
| 96 |
|
$expected = ['foo_first'=>'', 'foo_surname'=>'', 'foo'=>'']; |
| 97 |
|
$this->assertSame($form->get('foo'), $expected); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
/** @test */ |
| 101 |
|
public function it_fetches_values_for_a_complex_field_by_key() |
tests/unit/NameTest.php 1 location
|
@@ 59-66 (lines=8) @@
|
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
/** @test */ |
| 59 |
|
public function it_provides_expected_values() |
| 60 |
|
{ |
| 61 |
|
$form = $this->form(); |
| 62 |
|
$form->name('foo'); |
| 63 |
|
|
| 64 |
|
$expected = ['foo_first'=>'', 'foo_surname'=>'', 'foo'=>'']; |
| 65 |
|
$this->assertSame($form->get('foo'), $expected); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
/** @test */ |
| 69 |
|
public function it_provides_expected_default_values() |