diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 12:15:14 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 12:15:14 +0100 |
commit | 109f112131fd13b5b7c7f26bc9413071dad566f1 (patch) | |
tree | c4b7b63b5402d6c54e722008b1e5ca7d64a8622d /tests/Unit/Logger/EngelsystemLoggerTest.php | |
parent | 416c49ae0b8a0f09da9a3cd96590f5ce6e8b1996 (diff) |
BaseModel: Removed methods as already provided by Eloquent Builder
Diffstat (limited to 'tests/Unit/Logger/EngelsystemLoggerTest.php')
-rw-r--r-- | tests/Unit/Logger/EngelsystemLoggerTest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/Unit/Logger/EngelsystemLoggerTest.php b/tests/Unit/Logger/EngelsystemLoggerTest.php index 0f4c8c32..3b67aa29 100644 --- a/tests/Unit/Logger/EngelsystemLoggerTest.php +++ b/tests/Unit/Logger/EngelsystemLoggerTest.php @@ -18,7 +18,9 @@ class EngelsystemLoggerTest extends ServiceProviderTest public function testLog() { /** @var LogEntry|MockObject $logEntry */ - $logEntry = $this->createMock(LogEntry::class); + $logEntry = $this->getMockBuilder(LogEntry::class) + ->addMethods(['create']) + ->getMock(); $logEntry->expects($this->once()) ->method('create') ->with(['level' => LogLevel::INFO, 'message' => 'I\'m an information!']); @@ -48,7 +50,9 @@ class EngelsystemLoggerTest extends ServiceProviderTest public function testInterpolate() { /** @var LogEntry|MockObject $logEntry */ - $logEntry = $this->createMock(LogEntry::class); + $logEntry = $this->getMockBuilder(LogEntry::class) + ->addMethods(['create']) + ->getMock(); $logEntry->expects($this->exactly(3)) ->method('create') ->withConsecutive( |