e0ipso / schema-forms-php

Creates form definitions from JSON Schema property definitions and display configuration.
GNU General Public License v2.0
6 stars 2 forks source link

Form Generator Drupal Test does not comply with psr-4 autoloading standard #37

Open justcaldwell opened 8 months ago

justcaldwell commented 8 months ago

Since including this as a dependency of Single Directory Components: Display, I get the warning below when building with composer:

Class SchemaForms\Tests\Drupal\FormGeneratorDrupal\FormGeneratorDrupalTest located in ./vendor/e0ipso/schema-forms/tests/src/Drupal/SchemaForms/FormGeneratorDrupalTest.php does not comply with psr-4 autoloading standard. Skipping.

Moved from Testing Class Schema Forms - Form Generator Drupal Test does not comply with psr-4 autoloading standard [#3365731]

pcambra commented 6 months ago

Not sure how to test this, but I think on tests/src/Drupal/SchemaForms/FormGeneratorDrupalTest.php

The namespace is stated as

namespace SchemaForms\Tests\Drupal\FormGeneratorDrupal;

While the path is

tests/src/Drupal/SchemaForms

So we either change the path to be tests/src/Drupal/FormGeneratorDrupal or change the namespace to be namespace SchemaForms\Tests\Drupal\SchemaForms;

And then issue a new minor release.