![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-integration/Test/Unit/Model/Config/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Integration\Test\Unit\Model\Config; use Magento\Framework\Module\Dir\Reader; use Magento\Integration\Model\Config\SchemaLocator; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; class SchemaLocatorTest extends TestCase { /** @var Reader|MockObject */ protected $moduleReader; /** @var string */ protected $moduleDir; /** @var SchemaLocator */ protected $schemaLocator; protected function setUp(): void { $this->moduleDir = 'moduleDirectory'; $this->moduleReader = $this->createMock(Reader::class); $this->moduleReader->expects($this->any()) ->method('getModuleDir') ->willReturn($this->moduleDir); $this->schemaLocator = new SchemaLocator($this->moduleReader); } public function testGetSchema() { $this->assertEquals($this->moduleDir . '/integration/config.xsd', $this->schemaLocator->getSchema()); } public function testGetPerFileSchema() { $this->assertNull($this->schemaLocator->getPerFileSchema()); } }