FavoritesServiceTest
extends TestCase
in package
FavoritesService Test Class
Tags
Table of Contents
- testLoginRequiredToCreateList() : void
- Test that an exception is thrown if a non-logged-in user tries to create a new list.
- testNewListIsPopulatedCorrectly() : void
- Test that a new list is populated appropriately.
- getFavoritesService() : FavoritesService
- Get a FavoritesService object.
- getMockUser() : MockObject|UserEntityInterface
- Create a mock user object.
Methods
testLoginRequiredToCreateList()
Test that an exception is thrown if a non-logged-in user tries to create a new list.
public
testLoginRequiredToCreateList() : void
Return values
void —testNewListIsPopulatedCorrectly()
Test that a new list is populated appropriately.
public
testNewListIsPopulatedCorrectly() : void
Return values
void —getFavoritesService()
Get a FavoritesService object.
protected
getFavoritesService([UserListServiceInterface $listService = null ]) : FavoritesService
Parameters
- $listService : UserListServiceInterface = null
-
Mock list service (optional)
Return values
FavoritesService —getMockUser()
Create a mock user object.
protected
getMockUser() : MockObject|UserEntityInterface