true]); $provider = new \App\Providers\EventServiceProvider(app()); $provider->boot(); } public function testRemember() { $player = factory(Player::class)->create(); event(new GetPlayerJson($player, Player::CSL_API)); $this->assertTrue(Cache::has("json-{$player->pid}-".Player::CSL_API)); } public function testForget() { $player = factory(Player::class)->create(); event(new PlayerProfileUpdated($player)); Cache::shouldReceive('forget') ->with("json-{$player->pid}-".Player::CSL_API) ->with("json-{$player->pid}-".Player::USM_API); } }