Firesphere\SolrSearch\Tests\MockStateTwo
Synopsis
class MockStateTwo
extends SiteState
implements
TestOnly,SiteStateInterface
{
- // members
- protected string $state = 'Cow';
- // methods
- public void appliesToEnvironment()
- public void currentState()
- public void activateState()
- public bool stateIsApplicable()
- public mixed setDefaultState()
- public mixed updateQuery()
Hierarchy
Extends
- Firesphere\SolrSearch\States\SiteState
Implements
- SilverStripe\Dev\TestOnly
- Firesphere\SolrSearch\Interfaces\SiteStateInterface
Tasks
Line | Task |
---|---|
61 | Implement updateQuery() method. |
Members
protected
- $state
Methods
public
- activateState()
- appliesToEnvironment()
- currentState()
- setDefaultState() — Reset the SiteState to it's default state
- stateIsApplicable() — Is this state applicable to this extension E.g. in case of Fluent, the state "SubsiteID1" does not make sense
- updateQuery() — Method to alter the query. Can be no-op.