Skip to content

Commit

Permalink
✅ Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Jun 1, 2019
1 parent fc5d572 commit c1f14e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/RunsAsListenersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@

class RunsAsListenersTest extends TestCase
{
protected function getEnvironmentSetUp($app)
protected function setUp(): void
{
$app->make('events')->listen('string_event', SimpleCalculatorForStringEvents::class);
$app->make('events')->listen(get_class($this->newEvent()), SimpleCalculator::class);
$app->make('events')->listen(get_class($this->newValidatedEvent()), SimpleCalculatorWithValidation::class);
parent::setUp();

$this->app->make('events')->listen('string_event', SimpleCalculatorForStringEvents::class);
$this->app->make('events')->listen(get_class($this->newEvent()), SimpleCalculator::class);
$this->app->make('events')->listen(get_class($this->newValidatedEvent()), SimpleCalculatorWithValidation::class);
}

/** @test */
Expand Down

0 comments on commit c1f14e1

Please sign in to comment.