artkonekt / opsgenie-laravel Goto Github PK
View Code? Open in Web Editor NEWOpsGenie Notifications Channel for Laravel
License: MIT License
OpsGenie Notifications Channel for Laravel
License: MIT License
Hello,
I have an issue, during test when faking notification it doesn't give me the right notification fired.
Notification::fake();
Notification::sendNow(MyModel::factory()->create(), new NotifyCritical("Cannot Handle this case!"));
Notification::assertSentOnDemand(NotifyCritical::class);
Shows me this error :
1) Tests\Feature\WorkflowTest::it_should_work
The expected [App\Notifications\Opsgenie\NotifyCritical] notification was not sent.
Failed asserting that false is true.
/var/www/api-v1/vendor/laravel/framework/src/Illuminate/Support/Testing/Fakes/NotificationFake.php:83
/var/www/api-v1/vendor/laravel/framework/src/Illuminate/Support/Testing/Fakes/NotificationFake.php:46
/var/www/api-v1/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261
/var/www/api-v1/tests/Feature/WorkflowTest.php:46
phpvfscomposer:///var/www/api-v1/vendor/phpunit/phpunit/phpunit:97
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
What is the notification sent then ?
Laravel version: 8
PHP: 7.4
Is an update to Laravel 10 on your roadmap?
We have our clients auth_token's stored in the database.
What is the recommended way to pass these through to the notification?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.