Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FormBundle] [Tests] Fix namespace + modernize old fashioned mocks and use codeception #2107

Merged
merged 1 commit into from Nov 2, 2018
Merged

[FormBundle] [Tests] Fix namespace + modernize old fashioned mocks and use codeception #2107

merged 1 commit into from Nov 2, 2018

Conversation

Numkil
Copy link
Contributor

@Numkil Numkil commented Sep 10, 2018

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets #2063

This fixes the issue where codeception could not run individual test classes for this bundle. Also gets rid of some old fashioned mocks that were causing namespace issues.

Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @Numkil, your PR needs some changes

  • It seems that our checklist is missing or incomplete

@Numkil Numkil changed the base branch from master to 5.0 September 10, 2018 09:00
@Numkil Numkil changed the base branch from 5.0 to master September 10, 2018 09:04
Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @Numkil, your PR needs some changes

  • This PR seems to need a milestone of a minor release.

Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @Numkil, your PR passed all our requirements.

Thank you for contributing!

Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @Numkil, your PR passed all our requirements.

Thank you for contributing!

@acrobat
Copy link
Member

acrobat commented Sep 13, 2018

@Numkil with the new unit dir, should we update our namespaces too? Kunstmaan\FormBundle\Tests\Unit or change the composer autoloading so it maps Kunstmaan\FormBundle\Tests to the unit dir? Mapping it to the unit dir will give us trouble when adding other types of tests

@Numkil
Copy link
Contributor Author

Numkil commented Sep 13, 2018

Imo the namespaces are now fine as they are. The unit directory doesn't impact the functionality of the tests. It only causes problems for when you want to create new classes in this directory and call them with "new" in the tests. This is something that i think should be avoided anyway so not an issue in my eyes.
Im open to adjust the namespaces with unit if necessary, its not that much work.

@Numkil Numkil merged commit d48ef1d into Kunstmaan:master Nov 2, 2018
diskwriter added a commit to diskwriter/KunstmaanBundlesCMS that referenced this pull request Nov 19, 2018
* 'master' of github.com:Kunstmaan/KunstmaanBundlesCMS:
  [MediaBundle] Added image sizes to media chooser (Kunstmaan#2158)
  [AdminBundle][AdminListBundle] [Tests] fix namespace tests and refactor mocks (Kunstmaan#2108)
  [NodeBundle] [tests] fix tests namespace and refactor mocks (Kunstmaan#2132)
  [GeneratorBundle] [tests] fix namespace tests (Kunstmaan#2114)
  [ConfigBundle] [tests] fix namespace tests (Kunstmaan#2111)
  [ArticleBundle] fix tests namespace (Kunstmaan#2109)
  [GeneratorBundle, FormBundle]: add generator for form pageparts (Kunstmaan#2106)
  [FormBundle] Fix namespace + modernize old fashioned mocks and use codeception (Kunstmaan#2107)
  [BehatBundle] [Tests] fix namespace tests (Kunstmaan#2110)
  [DashboardBundle] [Tests] fix namespace tests (Kunstmaan#2112)
  [FixturesBundle] [tests] fix namespace tests (Kunstmaan#2113)
  [LeadGenerationBundle] [Tests] fix namespace tests (Kunstmaan#2127)
  [MediaBundle] [tests] fix namespace tests (Kunstmaan#2128)
  [MediaPagePartBundle] [tests] fix namespace tests (Kunstmaan#2129)
  [MenuBundle] [Tests] fix tests namespace (Kunstmaan#2130)
  [MultiDomainBundle] [tests] fix namespace tests (Kunstmaan#2131)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants