FormTest.php 742 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Model;
  7. class FormTest extends \PHPUnit\Framework\TestCase
  8. {
  9. /**
  10. * @var \Magento\Customer\Model\Form
  11. */
  12. protected $_model;
  13. protected function setUp()
  14. {
  15. $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
  16. \Magento\Customer\Model\Form::class
  17. );
  18. $this->_model->setFormCode('customer_account_create');
  19. }
  20. public function testGetAttributes()
  21. {
  22. $attributes = $this->_model->getAttributes();
  23. $this->assertInternalType('array', $attributes);
  24. $this->assertNotEmpty($attributes);
  25. }
  26. }