From 25c706dee426d717a50d54cbc632f878b0f78b3a Mon Sep 17 00:00:00 2001 From: Arthur Monney Date: Thu, 7 Nov 2019 07:09:49 +0100 Subject: [PATCH] :white_check_mark: Start writing unit tests --- phpunit.xml | 7 +------ tests/NotifyTest.php | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 tests/NotifyTest.php diff --git a/phpunit.xml b/phpunit.xml index ce34605..9d1a3e8 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -10,13 +10,8 @@ processIsolation="false" stopOnFailure="false"> - + ./tests/ - - - src/ - - diff --git a/tests/NotifyTest.php b/tests/NotifyTest.php new file mode 100644 index 0000000..9393f22 --- /dev/null +++ b/tests/NotifyTest.php @@ -0,0 +1,26 @@ +session = Mockery::spy('Mckenziearts\Notify\Storage\Session'); + $this->notify = new LaravelNotify($this->session); + } + + /** @test */ + public function it_display_info_notify() + { + $this->notify->success('Success Notification'); + $message = 'Success Notification'; + + $this->assertEquals('Success Notification', $message); + } +}