/**
  * Test for method filterAttributeCollection
  */
 public function testFilterAttributeCollection()
 {
     $collection = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Customer\\Model\\ResourceModel\\Attribute\\Collection');
     $collection = $this->_model->filterAttributeCollection($collection);
     /**
      * Check that disabled attributes is not existed in attribute collection
      */
     $existedAttributes = [];
     /** @var $attribute \Magento\Customer\Model\Attribute */
     foreach ($collection as $attribute) {
         $existedAttributes[] = $attribute->getAttributeCode();
     }
     $disabledAttributes = $this->_model->getDisabledAttributes();
     foreach ($disabledAttributes as $attributeCode) {
         $this->assertNotContains($attributeCode, $existedAttributes, 'Disabled attribute "' . $attributeCode . '" existed in collection');
     }
 }