[Flow] Creating simple UnitTests (RestController)
Steffen Müller
typo3 at t3node.com
Wed Apr 2 11:38:47 CEST 2014
Hi.
On 02.04.2014 10:20 Christian Müller wrote:
> I guess building a unit test will be pretty difficult, you might want to
> write unit tests for the actual logic in your models for example.
When writing my own custom actions then I use getMock() instead of new()
for those cases, where I run into troubles caused by unresolved
dependencies.
It still allows me to test the relationship between my test subject and
it's neighbors with expectations like "it passes model to view" or "it
updates model in repository".
--
cheers,
Steffen
Active Contributor TYPO3 CMS
TYPO3 Blog: http://www.t3node.com/
Twitter: @t3node - http://twitter.com/t3node
More information about the Flow
mailing list