Skip to content

Conversation

@achimfritz
Copy link
Contributor

  • TYPO3 v12 backend tests
  • phpunit accessible mock builder
  • phpunit use setMethods
  • use dev-main branch for v12

* TYPO3 v12 backend tests
* phpunit accessible mock builder
* phpunit use setMethods
* use dev-main branch for v12
@achimfritz achimfritz requested a review from bmack April 14, 2023 09:08
$containerGridColumnItem = $this->getAccessibleMock(ContainerGridColumnItem::class, ['foo'], [], '', false);
$containerGridColumnItem = $this->getMockBuilder($this->buildAccessibleProxy(ContainerGridColumnItem::class))
->disableOriginalConstructor()
->addMethods(['foo'])
Copy link
Contributor

@lolli42 lolli42 Apr 18, 2023

Choose a reason for hiding this comment

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

note addMethods() has been deprecated with phpunit v10.1, we'll start removing it from core codebase soon. use onlyMethods([]) to say "don't mock-away anything".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i will do a new PR

@achimfritz achimfritz merged commit 01ce558 into master Apr 19, 2023
@achimfritz achimfritz deleted the task/v12 branch April 19, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants