CollectionFactoryTest.php 890 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Message;
  7. /**
  8. * \Magento\Framework\Message\CollectionFactory test case
  9. */
  10. class CollectionFactoryTest extends \PHPUnit\Framework\TestCase
  11. {
  12. /**
  13. * @var \Magento\Framework\Message\CollectionFactory
  14. */
  15. protected $model;
  16. /**
  17. * @var \Magento\Framework\ObjectManagerInterface
  18. */
  19. protected $objectManager;
  20. public function setUp()
  21. {
  22. $this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
  23. $this->model = $this->objectManager->create(\Magento\Framework\Message\CollectionFactory::class);
  24. }
  25. public function testCreate()
  26. {
  27. $message = $this->model->create();
  28. $this->assertInstanceOf(\Magento\Framework\Message\Collection::class, $message);
  29. }
  30. }