PredictorProjectorTest.php 555 Bytes
<?php

namespace FootyRoom\Tests\Unit\Predictor;

use FootyRoom\Tests\TestCase;
use FootyRoom\Core\Predictor\Prediction;
use FootyRoom\Core\Predictor\PredictionStakeRaised;
use FootyRoom\Queries\Predictor\PredictorProjector;

class PredictorProjectorTest extends TestCase
{
    public function test_PredictionStakeRaised_event_is_handled()
    {
        $this->expectListenerCalled(PredictorProjector::class . '@whenPredictionStakeRaised'); 

        $this->app['events']->fire(new PredictionStakeRaised(new Prediction(1, 1000, 1, 2, 200), 200));
    }
}