\JSONTextQueryTest
Synopsis
class JSONTextQueryTest
extends SapphireTest
{
- // methods
- public void __construct()
- public void setUp()
- public void testQueryWithMatchOnInt()
- public void testQueryWithMatchOnStr()
- public void testQueryWithMatchOnPath()
- public void testQueryWithMatchOnExpr()
- public void testQueryWithInvalidArgs()
- private string getFixture()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Tasks
Line | Task |
---|---|
64+ | Use same source data instead of repeating.. |
Members
protected
- $fixtures — array
- $sut — PhpTek\JSONText\ORM\FieldType\JSONText
Methods
private
- getFixture() — Get the contents of a fixture
public
- __construct() — JSONTextTest constructor.
- setUp() — Setup the System Under Test for this test suite.
- testQueryWithInvalidArgs() — Tests query() by means of passing bad argument combinations.
- testQueryWithMatchOnExpr() — Tests query() by means of JSONPath expressions.
- testQueryWithMatchOnInt() — Tests query() by means of the integer Postgres Int match operator: '->'
- testQueryWithMatchOnPath() — Tests query() by means of the Postgres path-match operator: '#>'
- testQueryWithMatchOnStr() — Tests query() by means of the integer Postgres String match operator: '->>'