Skip to content

Commit

Permalink
get back location to phpunit test
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Feb 12, 2024
1 parent d6ab0b3 commit f0fd7f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions tests/booking_option_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ public function test_csv_import_process_data() {
$this->assertEquals("MO 17:15 - 19:30", $option1->dayofweektime);
$this->assertEquals(35, $option1->maxanswers);
$this->assertEquals("monday", $option1->dayofweek);
// phpcs:ignore
//$this->assertEquals("TNMU", $option1->location);
$this->assertEquals("TNMU", $option1->location);

// Create booking option object to get extra detsils.
$bookingoptionobj = new booking_option($cmb1->id, $option1->id);
Expand Down Expand Up @@ -289,8 +288,7 @@ public function test_csv_import_process_data() {
$this->assertEquals("We 18:10 - 19:40", $option3->dayofweektime);
$this->assertEquals(60, $option3->maxanswers);
$this->assertEquals("wednesday", $option3->dayofweek);
// phpcs:ignore
//$this->assertEquals("TNMU", $option3->location);
$this->assertEquals("TNMU", $option3->location);

// Create booking option object to get extra detsils.
$bookingoptionobj = new booking_option($cmb1->id, $option3->id);
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/options_coma_new01.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier,titleprefix,text,sport,location,institution,address,maxanswers,maxoverbooking,coursenumber,addtocalendar,dayofweek,dayofweektime,dayofweekstarttime,dayofweekendtime,description,descriptionfromat,default,intern,extern,botags,kst,teacheremail
pftr52,1,0-Allgemeines Turnen,Allgemeines Turnen,TNMU,Spitalgasse 14 1090 Wien,Voli 1,35,0,1,0,MO,MO 17:15 - 19:30,1715,1930,Vorwiegend Outdoor,1,79,89,99,bTNMU,ET592001,[email protected]
pftr53,3,0-Rückenfit,Rückenfit,TNMU,Spitalgasse 14 1090 Wien,Voli 1,60,0,3,0,TH,Th 06:50 - 07:35,650,735,Auch Outdoor,1,79,89,99,TryUSI,ET592001,[email protected]
pftr54,5,0-Kondition Mit Musik,Kondition Mit Musik,TNMU,Spitalgasse 14 1090 Wien,Voli 1,60,0,5,0,We,We 18:10 - 19:40,1810,1940,,1,79,89,99,KPI,ET592001,[email protected]
identifier,titleprefix,text,sport,location,institution,address,maxanswers,maxoverbooking,coursenumber,addtocalendar,dayofweek,dayofweektime,dayofweekstarttime,dayofweekendtime,description,descriptionfromat,useprice,default,intern,extern,botags,kst,teacheremail
pftr52,1,0-Allgemeines Turnen,Allgemeines Turnen,TNMU,Spitalgasse 14 1090 Wien,Voli 1,35,0,1,0,MO,MO 17:15 - 19:30,1715,1930,Vorwiegend Outdoor,1,1,79,89,99,bTNMU,ET592001,[email protected]
pftr53,3,0-Rückenfit,Rückenfit,TNMU,Spitalgasse 14 1090 Wien,Voli 1,60,0,3,0,TH,Th 06:50 - 07:35,650,735,Auch Outdoor,1,1,79,89,99,TryUSI,ET592001,[email protected]
pftr54,5,0-Kondition Mit Musik,Kondition Mit Musik,TNMU,Spitalgasse 14 1090 Wien,Voli 1,60,0,5,0,We,We 18:10 - 19:40,1810,1940,,1,1,79,89,99,KPI,ET592001,[email protected]

0 comments on commit f0fd7f1

Please sign in to comment.