Пример #1
0
 public function testAddFile()
 {
     $builder = new FieldsBuilder('fields');
     $builder->addFile('name');
     $expectedConfig = ['fields' => [['name' => 'name', 'type' => 'file']]];
     $this->assertArraySubset($expectedConfig, $builder->build());
 }