Colymba\RESTfulAPI\Tests\QueryHandlers\DefaultQueryHandlerTest
Default Query Handler Test suite
- Author: Thierry Francois @colymba thierry@colymba.com
- Copyright: Copyright (c) 2013, Thierry Francois
- License: http://opensource.org/licenses/BSD-3-Clause BSD Simplified
Synopsis
class DefaultQueryHandlerTest
extends RESTfulAPITester
{
- // members
- protected static array $extra_dataobjects = ;
- protected string $url_pattern = 'api/$ModelReference/$ID';
- // methods
- public void setUp()
- protected void getHTTPRequest()
- protected void getQueryHandler()
- public static void setUpBeforeClass()
- public void testQueryParametersParsing()
- public void testAPIDisabled()
- public void testFindSingleModel()
- public void testFindMultipleModels()
- public void testModelMappingFallback()
- public void testMaxRecordsLimit()
- public void testCreateModel()
- public void testModelValidation()
- public void testUpdateModel()
- public void testDeleteModel()
- public void testAfterDeserialize()
- // Inherited methods from RESTfulAPITester
- public static void generateDBEntries()
- public void setDefaultApiConfig()
- public void getOPTIONSHeaders()
- public void getRequestHeaders()
- public static void setUpBeforeClass()
- public void setUp()
Hierarchy
Members
protected
- $extra_dataobjects
- $url_pattern
Methods
protected
public
- setUp() — Turn on API access for the book and widget fixtures by default
- setUpBeforeClass()
- testAPIDisabled() — Checks that access to DataObject with api_access config disabled return error
- testAfterDeserialize()
- testCreateModel() — Checks new record creation
- testDeleteModel() — Checks record deletion
- testFindMultipleModels() — Checks multiple records requests
- testFindSingleModel() — Checks single record requests
- testMaxRecordsLimit() — Checks max record limit config
- testModelMappingFallback() — Checks fallback for models without explicit mapping
- testModelValidation() — Checks new record creation
- testQueryParametersParsing() — Checks that query parameters are parsed properly
- testUpdateModel() — Checks record update