Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/framework/App/Test/Unit/Config/
Upload File :
Current File : //home/rtorresani/www/vendor/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();
    }
}