|
@@ -677,7 +677,7 @@ class PHP_CRUD_API_Test extends PHPUnit_Framework_TestCase
|
677
|
677
|
{
|
678
|
678
|
$test = new API($this);
|
679
|
679
|
$test->get('/events?columns=datetime');
|
680
|
|
- $test->expect('{"events":{"columns":["datetime"],"records":[["2016-01-01 13:01:01.111"]]}}');
|
|
680
|
+ $test->expect('{"events":{"columns":["datetime"],"records":[["2016-01-01 13:01:01"]]}}');
|
681
|
681
|
}
|
682
|
682
|
|
683
|
683
|
public function testIncrementEventVisitors()
|
|
@@ -686,7 +686,7 @@ class PHP_CRUD_API_Test extends PHPUnit_Framework_TestCase
|
686
|
686
|
$test->patch('/events/1','{"visitors":11}');
|
687
|
687
|
$test->expect('1');
|
688
|
688
|
$test->get('/events/1');
|
689
|
|
- $test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01.111","visitors":11}');
|
|
689
|
+ $test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":11}');
|
690
|
690
|
}
|
691
|
691
|
|
692
|
692
|
public function testIncrementEventVisitorsWithZero()
|
|
@@ -695,7 +695,7 @@ class PHP_CRUD_API_Test extends PHPUnit_Framework_TestCase
|
695
|
695
|
$test->patch('/events/1','{"visitors":0}');
|
696
|
696
|
$test->expect('1');
|
697
|
697
|
$test->get('/events/1');
|
698
|
|
- $test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01.111","visitors":11}');
|
|
698
|
+ $test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":11}');
|
699
|
699
|
}
|
700
|
700
|
|
701
|
701
|
public function testDecrementEventVisitors()
|
|
@@ -704,7 +704,7 @@ class PHP_CRUD_API_Test extends PHPUnit_Framework_TestCase
|
704
|
704
|
$test->patch('/events/1','{"visitors":-5}');
|
705
|
705
|
$test->expect('1');
|
706
|
706
|
$test->get('/events/1');
|
707
|
|
- $test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01.111","visitors":6}');
|
|
707
|
+ $test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01","visitors":6}');
|
708
|
708
|
}
|
709
|
709
|
|
710
|
710
|
public function testListTagUsage()
|