Skip to content

PHPLIB-879: Convert command monitoring tests to unified format #933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions tests/SpecTests/CommandExpectations.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ public static function fromClientSideEncryption(array $expectedEvents)
return $o;
}

public static function fromCommandMonitoring(array $expectedEvents)
{
return new self($expectedEvents);
}

public static function fromCrud(array $expectedEvents)
{
$o = new self($expectedEvents);
Expand Down
229 changes: 0 additions & 229 deletions tests/SpecTests/CommandMonitoringSpecTest.php

This file was deleted.

14 changes: 0 additions & 14 deletions tests/SpecTests/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,6 @@ public static function fromClientSideEncryption(stdClass $operation)
return $o;
}

public static function fromCommandMonitoring(stdClass $operation)
{
$o = new self($operation);

if (isset($operation->collectionOptions)) {
$o->collectionOptions = (array) $operation->collectionOptions;
}

/* We purposefully avoid setting a default error expectation, because
* some tests may trigger a write or command error. */

return $o;
}

/**
* This method is exclusively used to prepare nested operations for the
* withTransaction session operation
Expand Down
110 changes: 0 additions & 110 deletions tests/SpecTests/command-monitoring/bulkWrite.json

This file was deleted.

Loading