\JSONTextIntegrationTest
Synopsis
class JSONTextIntegrationTest
extends SapphireTest
{
- // members
- protected static $fixture_file;
- protected static array $extra_dataobjects = ;
- // methods
- public void __construct()
- public void testSetValueOnNestedArray()
- public void testSetValueOnUnNestedArray()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
—
array
Allows us the ability to scaffold DB records for {@link TestOnly} implementations. - $fixture_file — string
Methods
public
- __construct() — Modifies fixtures property to be able to run on PHP <5.6 without use of constant in class property which 5.6+ allows
- testSetValueOnNestedArray() — Tests JSONText::setValue() by means of a simple JSONPath expression operating on a nested JSON array on a saved DataObject record.
- testSetValueOnUnNestedArray() — Tests JSONText::setValue() by means of a simple JSONPath expression operating on a simple, un-nested JSON array on a saved DataObject record.