Example #1
0
 public function testCollateAttributesFlat()
 {
     $article_type = new ArticleType();
     $collated_attributes = $article_type->collateAttributes(function (AttributeInterface $attribute) {
         return $attribute->getName() === 'content';
     }, false);
     $this->assertInstanceOf(AttributeMap::CLASS, $collated_attributes);
     $this->assertCount(1, $collated_attributes);
 }