@@ 58-67 (lines=10) @@ | ||
55 | ->getFormFactory(); |
|
56 | } |
|
57 | ||
58 | public function testCheckboxType() |
|
59 | { |
|
60 | $viewTransformers = $this->formFactory |
|
61 | ->create(CheckboxType::class, null, ['api' => false]) |
|
62 | ->getConfig() |
|
63 | ->getViewTransformers(); |
|
64 | ||
65 | $this->assertCount(1, $viewTransformers); |
|
66 | $this->assertInstanceOf(BooleanToStringTransformer::class, $viewTransformers[0]); |
|
67 | } |
|
68 | ||
69 | public function testApiType() |
|
70 | { |
|
@@ 69-78 (lines=10) @@ | ||
66 | $this->assertInstanceOf(BooleanToStringTransformer::class, $viewTransformers[0]); |
|
67 | } |
|
68 | ||
69 | public function testApiType() |
|
70 | { |
|
71 | $viewTransformers = $this->formFactory |
|
72 | ->create(CheckboxType::class, null, ['api' => true]) |
|
73 | ->getConfig() |
|
74 | ->getViewTransformers(); |
|
75 | ||
76 | $this->assertCount(1, $viewTransformers); |
|
77 | $this->assertInstanceOf(BooleanTransformer::class, $viewTransformers[0]); |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * @dataProvider validInitialProvider |