\PageUpdateServiceTest
Created by PhpStorm.
User: simon
Date: 20-Oct-17
Time: 15:04
Synopsis
class PageUpdateServiceTest
extends SapphireTest
{
- // members
- protected PageUpdateService $service;
- // methods
- public void setUp()
- public void testFindHomePage()
- public void testFindChildPage()
- public void testFindChildPageWithQuery()
- public void testFindPageWithEmptyLast()
- public void testUpdateVisits()
- public void testUpdateNoVisits()
Hierarchy
Extends
- SapphireTest
Members
protected
- $service — PageUpdateService
Methods
public
- setUp()
- testFindChildPage() — Validate we're traversing correctly down in to the child pages
- testFindChildPageWithQuery() — Make sure the get params are ignored
- testFindHomePage() — Validate an array with two empty values finds the homepage
- testFindPageWithEmptyLast() — Make sure an empty last value is skipped
- testUpdateNoVisits() — Validate that if no pages is found, nothing is done.
- testUpdateVisits() — Validate updating the pages works