/** @test */
 public function it_checks_if_field_rendered_by_children()
 {
     $repeated = new RepeatedType('password', 'repeated', $this->plainForm, ['type' => 'file']);
     $this->assertFalse($repeated->isRendered());
     $repeated->first->render();
     $this->assertTrue($repeated->isRendered());
     $this->assertTrue($this->plainForm->getFormOption('files'));
 }
    /** @test */
    public function it_checks_if_field_rendered_by_children()
    {
        $this->fieldExpetations('text', Mockery::any());
        $this->fieldExpetations('text', Mockery::any());
        $this->fieldExpetations('repeated', Mockery::any());
        $this->container->shouldReceive('make')->andReturn($this->plainForm);

        $repeated = new RepeatedType('password', 'repeated', $this->plainForm, [
            'type' => 'file'
        ]);

        $this->assertFalse($repeated->isRendered());

        $repeated->first->render();

        $this->assertTrue($repeated->isRendered());

        $this->assertTrue($this->plainForm->getFormOption('files'));
    }