Skip to content

Commit

Permalink
UTCDateTime needs an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rsinger committed Dec 11, 2017
1 parent c15f352 commit 6767c75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/unit/mongo/MongoSearchProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public function testCountSearchDocumentsWithFilters()
->setConstructorArgs(['CBD_testing', 'tripod_php_testing'])
->getMock();

$filters = ['_cts' => ['$lte' => new \MongoDB\BSON\UTCDateTime()]];
$filters = ['_cts' => ['$lte' => new \MongoDB\BSON\UTCDateTime(null)]];
$query = array_merge(['_id.type' => 'i_search_list'], $filters);
$collection = $this->getMockBuilder('\MongoDB\Collection')
->disableOriginalConstructor()
Expand Down Expand Up @@ -701,7 +701,7 @@ public function testDeleteSearchDocumentsBySearchId()

public function testDeleteSearchDocumentsBySearchIdWithTimestamp()
{
$timestamp = new \MongoDB\BSON\UTCDateTime();
$timestamp = new \MongoDB\BSON\UTCDateTime(null);

$query = [
'_id.type' => 'i_search_list',
Expand Down
4 changes: 2 additions & 2 deletions test/unit/mongo/MongoTripodTablesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ public function testCountTables()

public function testCountTablesWithFilters()
{
$filters = ['_cts' => ['$lte' => new \MongoDB\BSON\UTCDateTime()]];
$filters = ['_cts' => ['$lte' => new \MongoDB\BSON\UTCDateTime(null)]];
$query = array_merge(['_id.type' => 't_source_count'], $filters);
$collection = $this->getMockBuilder('\MongoDB\Collection')
->disableOriginalConstructor()
Expand Down Expand Up @@ -1719,7 +1719,7 @@ public function testDeleteTableRowsByTableId()

public function testDeleteTableRowsByTableIdWithTimestamp()
{
$timestamp = new \MongoDB\BSON\UTCDateTime();
$timestamp = new \MongoDB\BSON\UTCDateTime(null);

$query = [
'_id.type' => 't_source_count',
Expand Down
4 changes: 2 additions & 2 deletions test/unit/mongo/MongoTripodViewsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,7 @@ public function testCountViews()

public function testCountViewsWithFilters()
{
$filters = ['_cts' => ['$lte' => new \MongoDB\BSON\UTCDateTime()]];
$filters = ['_cts' => ['$lte' => new \MongoDB\BSON\UTCDateTime(null)]];
$query = array_merge(['_id.type' => 'v_some_spec'], $filters);
$collection = $this->getMockBuilder('\MongoDB\Collection')
->disableOriginalConstructor()
Expand Down Expand Up @@ -2111,7 +2111,7 @@ public function testDeleteViewsByViewId()

public function testDeleteViewsByViewIdWithTimestamp()
{
$timestamp = new \MongoDB\BSON\UTCDateTime();
$timestamp = new \MongoDB\BSON\UTCDateTime(null);

$query = [
'_id.type' => 'v_resource_full',
Expand Down

0 comments on commit 6767c75

Please sign in to comment.