update() public method

public update ( $urlApi = null )
 public function testCache()
 {
     $json_test = basename(dirname(__DIR__)) . '/_data/weather_test.json';
     $api = new WeatherApi();
     $api->update($json_test);
     $update_date1 = $api->data()->updated_at;
     $api2 = new WeatherApi();
     $update_date2 = $api2->data()->updated_at;
     $this->assertEquals($update_date1, $update_date2);
 }
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $api = new WeatherApi();
     $data = $api->update();
     echo json_encode($data) . PHP_EOL;
 }