You are here

public function ScheduleDataTest::testSetDatePage in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/ScheduleDataTest.php, line 129

Class

ScheduleDataTest

Namespace

AKlump\LoftDataGrids

Code

public function testSetDatePage() {
  $data = $this->obj
    ->setDatePage(new \DateTime('2017-03-19', new \DateTimeZone('America/Los_Angeles')))
    ->add('do', 're');
  $control = 'ec893faef9fcb6f71c33a728bb83becbfe4d31c0';
  $this
    ->assertSame($control, strval($data));
  $out = new JSONExporter($data);
  $this
    ->assertSame('{"03\\/19\\/2017":[{"do":"re"}]}', $out
    ->export());
}