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