_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( \Magento\Customer\Model\Form::class ); $this->_model->setFormCode('customer_account_create'); } public function testGetAttributes() { $attributes = $this->_model->getAttributes(); $this->assertInternalType('array', $attributes); $this->assertNotEmpty($attributes); } }