Page MenuHomeDevCentral

D199.id471.diff
No OneTemporary

D199.id471.diff

diff --git a/tests/Http/Controllers/GitHubGateControllerTest.php b/tests/Http/Controllers/GitHubGateControllerTest.php
--- a/tests/Http/Controllers/GitHubGateControllerTest.php
+++ b/tests/Http/Controllers/GitHubGateControllerTest.php
@@ -8,7 +8,7 @@
public function setUp () {
parent::setUp();
- $this->disableEvents();
+ $this->withoutEvents();
}
/**
diff --git a/tests/TestCase.php b/tests/TestCase.php
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -33,20 +33,6 @@
/// Helpers to mock application services
///
- /**
- * Mocks the events dispatcher
- */
- public function disableEvents () {
- // Disables events
- // This allows to test a single component and not all the application
- $mock = Mockery::mock('Illuminate\Contracts\Events\Dispatcher');
-
- $mock->shouldReceive('fire');
- $mock->shouldReceive('listen');
-
- $this->app->instance('events', $mock);
- }
-
///
/// Helpers to post data to gates
///

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 22, 04:43 (19 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594269
Default Alt Text
D199.id471.diff (1 KB)

Event Timeline