/**
  * Ensure we have events with a range of different costs and also
  * some events where the cost is not defined.
  */
 public function setUp()
 {
     // This needs to come first so that the post_example_settings template is created
     parent::setUp();
     $costs = [null, '4,92', '4,999', '5', '5.99', '25', '100', '180.067', '3.00 8.00 125.95', '*&^$@#%@', '東京は都会です', '1995.95'];
     $iterations = 0;
     foreach ($costs as $event_cost) {
         $iterations++;
         $new_event = $this->post_example_settings;
         $new_event['post_title'] .= uniqid();
         $new_event['EventStartDate'] = date_i18n('Y-m-d', strtotime("+{$iterations} days"));
         if (null !== $event_cost) {
             $new_event['EventCost'] = $event_cost;
         }
         $this->test_events[] = [$event_cost, tribe_create_event($new_event)];
     }
 }
 /**
  * Extend the setUp() function by assigning values for the event creation.
  *
  * @uses $postExampleSettings
  */
 function setUp()
 {
     parent::setUp();
     $this->postExampleSettings = array('post_author' => 3, 'post_content' => 'This is event content!', 'EventAllDay' => false, 'EventHideFromUpcoming' => true, 'EventOrganizerID' => 5, 'EventVenueID' => 8, 'EventShowMapLink' => true, 'EventShowMap' => true, 'EventStartDate' => '2012-01-01', 'EventEndDate' => '2012-01-03', 'EventStartHour' => '01', 'EventStartMinute' => '15', 'EventStartMeridian' => 'am', 'EventEndHour' => '03', 'EventEndMinute' => '25', 'EventEndMeridian' => 'pm');
 }
 public function tearDown()
 {
     // your tear down methods here
     // then
     parent::tearDown();
 }
 public function tearDown()
 {
     \Tribe__Events__Utils__Id_Generator::reset();
     parent::tearDown();
 }