Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
31 | public function testType() |
||
32 | { |
||
33 | $user = new User(); |
||
34 | $form = $this->factory->create(UserType::class, $user); |
||
35 | $form->submit([ |
||
36 | 'name' => ' Test name <p>test</p> bla <br> bla', |
||
37 | 'about' => 'Test <p>about</p> ', |
||
38 | ]); |
||
39 | static::assertSame('Test name test bla <br> bla', $user->getName()); |
||
40 | static::assertSame('Test about', $form->getData()->getAbout()); |
||
41 | } |
||
42 | } |
||
43 |