D195 introduced TestCase::disableEvents, as the Laravel methods
MocksApplicationServices::expectEvents and ::withoutEvents don't
mock the listen method.
We can use the Laravel implementation now it has been fixed at
the framework level.
Differential D199
[DO NOT MERGE] Use Laravel WithoutEvents test trait dereckson on Jan 9 2016, 15:16. Authored by Tags None Referenced Files
Subscribers None
Details
D195 introduced TestCase::disableEvents, as the Laravel methods We can use the Laravel implementation now it has been fixed at phpunit --no-coverage
Diff Detail
Event TimelineComment Actions Tests work with this laravel/framework change: http://devcentral.nasqueron.org/differential/diff/472/ Comment Actions TestCase::disableEvents() $this->withoutEvents(); Events::shouldReceive('listen'); [RuntimeException] Error Output: PHP Fatal error: Class 'Events' not found in /home/ubuntu/workspace/notificati ons/tests/TestCase.php on line 44 |