Skip to content

Commit

Permalink
Fixed Tests for Laravel 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Aug 26, 2016
1 parent c3fd280 commit 42ef424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to `LERN` will be documented in this file.

### 3.6.2
- Fixed Tests for Laravel 5.2

### 3.6.1
- Fixed Tests for Laravel 5.3

### 3.6.0
- Added a log_level option in the config to set the desired log level

Expand Down
8 changes: 4 additions & 4 deletions tests/NotifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function testAllSupportedDrivers()
{
$this->app['config']->set('lern.notify.drivers', $this->supportedDrivers);

$observer = $this->createMock('Monolog\Logger',['critical'],['channelName']);
$observer = $this->getMock('Monolog\Logger',['critical'],['channelName']);
$observer->expects($this->once())
->method('critical');

Expand Down Expand Up @@ -55,7 +55,7 @@ public function testLoggerCallsAddsError()
{
$this->app['config']->set('lern.notify.drivers', ['slack','pushover']);

$observer = $this->createMock('Monolog\Logger',['critical'],['channelName']);
$observer = $this->getMock('Monolog\Logger',['critical'],['channelName']);
$observer->expects($this->once())
->method('critical');

Expand All @@ -67,7 +67,7 @@ public function testLoggerCallsPushesHandler()
{
$handler = (new MonologHandlerFactory())->create('slack',config('lern.notify.slack'));

$observer = $this->createMock('Monolog\Logger',['pushHandler'],['channelName']);
$observer = $this->getMock('Monolog\Logger',['pushHandler'],['channelName']);
$observer->expects($this->once())
->method('pushHandler');

Expand Down Expand Up @@ -109,7 +109,7 @@ public function testItThrowsNotifierFailedExceptionWhenMonologThrowsException(){

$handler = (new MonologHandlerFactory())->create('slack',config('lern.notify.slack'));

$observer = $this->createMock('Monolog\Logger',['critical'],['channelName']);
$observer = $this->getMock('Monolog\Logger',['critical'],['channelName']);

$observer->expects($this->once())
->method('critical')
Expand Down

0 comments on commit 42ef424

Please sign in to comment.