Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ValueFactoryTest.php
Go to the documentation of this file.
1 <?php
7 
9 {
10  protected function setUp()
11  {
12  $this->instanceClassName = \Magento\Framework\App\Config\ValueInterface::class;
13  $this->factoryClassName = \Magento\Framework\App\Config\ValueFactory::class;
14  parent::setUp();
15  }
16 
20  public function testCreateWithException()
21  {
22  $this->objectManagerMock->expects($this->once())
23  ->method('create')
24  ->will($this->returnValue('somethingElse'));
25  $this->factory->create();
26  }
27 }