Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/App/Test/Unit/Config/
Upload File :
Current File : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/App/Test/Unit/Config/ValueFactoryTest.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Framework\App\Test\Unit\Config;

use Magento\Framework\App\Config\ValueFactory;
use Magento\Framework\App\Config\ValueInterface;
use Magento\Framework\TestFramework\Unit\AbstractFactoryTestCase;

class ValueFactoryTest extends AbstractFactoryTestCase
{
    protected function setUp(): void
    {
        $this->instanceClassName = ValueInterface::class;
        $this->factoryClassName = ValueFactory::class;
        parent::setUp();
    }

    public function testCreateWithException()
    {
        $this->expectException('InvalidArgumentException');
        $this->objectManagerMock->expects($this->once())
            ->method('create')
            ->willReturn('somethingElse');
        $this->factory->create();
    }
}