SilverStripe\SearchDataExtractor\Tests\SearchDataExtractorAPIControllerTest
Synopsis
class SearchDataExtractorAPIControllerTest
extends FunctionalTest
{
- // constants
- const API_ENDPOINT = '/api/v1/search-data-extractor';
- // members
- private $originalIgnore;
- protected static string $fixture_file = 'fixtures/SearchDataExtractorAPIControllerTest.yml';
- // methods
- public void setUp()
- public void tearDown()
- public void testInitAuthenticationFail()
- public void testInitAuthenticationSuccess()
- public void testValidateAllowedClassFail()
- public void testValidateAllowedClassSuccess()
- public void testGetDataPagination()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Constants
Name | Value |
---|---|
API_ENDPOINT | '/api/v1/search-data-extractor' |
Members
private
- $originalIgnore
—
boolean
To store the original value of the ignore_cli static
protected
- $fixture_file — boolean
Methods
public
- setUp() — Using this to store the original value used for BasicAuth::$ignore_cli so we can reset after tests.
- tearDown() — Using this to restore the original BasicAuth::$ignore_cli value.
- testGetDataPagination()
- testInitAuthenticationFail()
- testInitAuthenticationSuccess()
- testValidateAllowedClassFail()
- testValidateAllowedClassSuccess()