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); } }