/**
* @internal
*
* @covers \Shopware\Core\System\CustomEntity\Xml\CustomEntityXmlSchemaValidator
*/
class CustomEntityXmlSchemaValidatorTest extends TestCase
{ public function testValidateThrowsExceptionIfEntitiesNotDefined(): void
{ $schema =
new CustomEntityXmlSchema(__DIR__, null
);
$validator =
new CustomEntityXmlSchemaValidator();
$this->
expectException(\RuntimeException::
class);
$this->
expectExceptionMessage('No entities found in parsed xml file'
);
$validator->
validate($schema);
} /**
* @param class-string<\Throwable> $exceptionClass
*
* @dataProvider xmlProvider
*/