PHP Class EPTestSearchModule

Inheritance: extends EP_Test_Base
Show file Open project: 10up/elasticpress

Public Methods

Method Description
setUp ( ) Setup each test.
tearDown ( ) Clean up after each test. Reset our mocks
testSearchIndexDeleted ( ) Test case for when index is deleted, request for Elasticsearch should fall back to WP Query
testSearchOff ( ) Test that search is off by default
testSearchOn ( ) Test that search is on

Method Details

setUp() public method

Setup each test.
Since: 2.1
public setUp ( )

tearDown() public method

Clean up after each test. Reset our mocks
Since: 2.1
public tearDown ( )

testSearchIndexDeleted() public method

Test case for when index is deleted, request for Elasticsearch should fall back to WP Query

testSearchOff() public method

Test that search is off by default
Since: 2.1
public testSearchOff ( )

testSearchOn() public method

Test that search is on
Since: 2.1
public testSearchOn ( )