Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Enhancement: Leverage AbstractHttpControllerTestCase #307

Merged
merged 3 commits into from
Jan 23, 2015

Conversation

localheinz
Copy link
Member

This PR

  • leverages Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase for existing controller tests
  • adds more tests
  • mocks away database access

Related to #294.

->expects($this->once())
->method('getTotal')
->willReturn(0)
;
Copy link
Member Author

Choose a reason for hiding this comment

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

Needed to mock database access in view layer :trollface:.

GeeH added a commit that referenced this pull request Jan 23, 2015
Enhancement: Leverage AbstractHttpControllerTestCase
@GeeH GeeH merged commit 95ee765 into zendframework:master Jan 23, 2015
@localheinz localheinz deleted the fix/leverage-test-case branch February 5, 2015 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants