Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Remove internal test classes from autoloader #384

Merged
merged 1 commit into from
Jun 28, 2016

Conversation

core23
Copy link
Member

@core23 core23 commented Jun 27, 2016

I am targetting this branch, because test classes shouldn't be used by anybody.

This is a copy of the #383 but targets the 2.x branch.

Related to sonata-project/dev-kit#179

Changelog

### Removed
- internal test classes are now excluded from the autoloader

Subject

Tests for internal components shouldn't be loaded in production or extended by other bundles.

@@ -4,3 +4,7 @@ UPGRADE FROM 1.x to 2.0
### Sonata dependencies

Bump all Sonata dependencies to versions managed by the new management system.

### Tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be here but on 2.x upgrade file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed that

@soullivaneuh
Copy link
Member

LGTM for me.

ping @sonata-project/contributors for a second and final review.


### Tests

All files under the ``Tests`` directory are now correctly handled as internal test classes. You can't extend them anymore, because they are only loaded when running internal tests. More information can be found in the [composer docs](https://getcomposer.org/doc/04-schema.md#autoload-dev).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please linebreak this

@OskarStark
Copy link
Member

LGTM 👍

@greg0ire greg0ire merged commit d58cdfe into sonata-project:2.x Jun 28, 2016
@greg0ire
Copy link
Contributor

Thanks @core23 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants