We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We got feedback that we can improve the documentation on mock, and overall on the usage of assertion from anonymous function inside it.
see https://github.com/btry/flyve-mdm-glpi-plugin/blob/feature/atoum-ize_tests/tests/suite-integration/PluginFlyvemdmAgent.php#L399-412
$mockedAgent->getMockController()->notify = function($topic, $mqttMessage, $qos = 0, $retain = 0) use ($tester, &$mockedAgent) { $tester->string($topic)->isEqualTo($mockedAgent->getTopic() . "/Command/Unenroll"); $tester->string($mqttMessage)->isEqualTo(json_encode(['unenroll' => 'now'], JSON_UNESCAPED_SLASHES)); $tester->integer($qos)->isEqualTo(0); $tester->integer($retain)->isEqualTo(1); }; $mockedAgent->update([ 'id' => $mockedAgent->getID(), '_unenroll' => '', ]); $this->mock($mockedAgent)->call('notify')->once();
see @btry to see if the documentation helps or not
The text was updated successfully, but these errors were encountered:
wait until atoum/atoum#744 is merged
Sorry, something went wrong.
No branches or pull requests
We got feedback that we can improve the documentation on mock, and overall on the usage of assertion from anonymous function inside it.
see https://github.com/btry/flyve-mdm-glpi-plugin/blob/feature/atoum-ize_tests/tests/suite-integration/PluginFlyvemdmAgent.php#L399-412
see @btry to see if the documentation helps or not
The text was updated successfully, but these errors were encountered: