public function testGetAttributesMethodFiltered() { $article_type = new ArticleType(); $attributes = $article_type->getAttributes(['headline', 'click_count']); $this->assertInstanceOf(AttributeMap::CLASS, $attributes); $this->assertEquals(2, $attributes->getSize()); $this->assertInstanceOf(TextAttribute::CLASS, $attributes->getItem('headline')); $this->assertInstanceOf(IntegerAttribute::CLASS, $attributes->getItem('click_count')); }