66$ new_alid = null ;
77$ new_rlid = null ;
88
9- // Try to add airline before logging in
9+ /**
10+ * Try to add airline before logging in
11+ */
1012class RecordAirlineNotLoggedInTest extends WebTestCase {
1113 public function test () {
1214 global $ webroot ;
@@ -17,7 +19,9 @@ public function test() {
1719 }
1820}
1921
20- // Try to reuse an existing airline's code
22+ /**
23+ * Try to reuse an existing airline's code
24+ */
2125class RecordAirlineDuplicateICAOTest extends WebTestCase {
2226 public function test () {
2327 global $ webroot , $ airline ;
@@ -31,7 +35,9 @@ public function test() {
3135 }
3236}
3337
34- // Add new airline
38+ /**
39+ * Add new airline
40+ */
3541class RecordNewAirlineTest extends WebTestCase {
3642 public function test () {
3743 global $ webroot , $ airline , $ new_alid ;
@@ -49,7 +55,9 @@ public function test() {
4955 }
5056}
5157
52- // Try to record it again
58+ /**
59+ * Try to record it again
60+ */
5361class RecordAirlineDuplicateTest extends WebTestCase {
5462 public function test () {
5563 global $ webroot , $ airline ;
@@ -62,7 +70,9 @@ public function test() {
6270 }
6371}
6472
65- // Add new railway
73+ /**
74+ * Add new railway
75+ */
6676class RecordNewRailwayTest extends WebTestCase {
6777 public function test () {
6878 global $ webroot , $ railway , $ new_rlid ;
@@ -78,7 +88,9 @@ public function test() {
7888 }
7989}
8090
81- // Try to add the railway again
91+ /**
92+ * Try to add the railway again
93+ */
8294class RecordRailwayDuplicateTest extends WebTestCase {
8395 public function test () {
8496 global $ webroot , $ railway ;
@@ -91,22 +103,26 @@ public function test() {
91103 }
92104}
93105
94- // Try to edit an airline not belonging to us
106+ /**
107+ * Try to edit an airline not belonging to us
108+ */
95109class EditWrongAirlineTest extends WebTestCase {
96110 public function test () {
97111 global $ webroot , $ airline ;
98112
99113 login ($ this );
100114 $ params = $ airline ;
101- $ params ["alid " ] = 1 ; // this is presumably not owned by us
115+ $ params ["alid " ] = 1 ; // this airline should not be " owned" by this user
102116 $ params ["icao " ] = "ZZZY " ;
103117 $ params += array ("action " => "RECORD " );
104118 $ msg = $ this ->post ($ webroot . "php/alsearch.php " , $ params );
105119 $ this ->assertText ('0; ' );
106120 }
107121}
108122
109- // Try to reuse an existing airline's code
123+ /**
124+ * Try to reuse an existing airline's code
125+ */
110126class EditAirlineDuplicateICAOTest extends WebTestCase {
111127 public function test () {
112128 global $ webroot , $ airline , $ new_alid ;
@@ -121,7 +137,9 @@ public function test() {
121137 }
122138}
123139
124- // Try to edit to overwrite existing airline
140+ /**
141+ * Try to edit to overwrite existing airline
142+ */
125143class EditAirlineSuccessfulTest extends WebTestCase {
126144 public function test () {
127145 global $ webroot , $ airline , $ new_alid ;
@@ -137,7 +155,9 @@ public function test() {
137155}
138156
139157
140- // Search by IATA
158+ /**
159+ * Search for an airline by IATA code
160+ */
141161class SearchAirlineByIATATest extends WebTestCase {
142162 public function test () {
143163 global $ webroot , $ airline ;
@@ -156,7 +176,9 @@ public function test() {
156176 }
157177}
158178
159- // Search by ICAO
179+ /**
180+ * Search for an airline by ICAO code
181+ */
160182class SearchAirlineByICAOTest extends WebTestCase {
161183 public function test () {
162184 global $ webroot , $ airline ;
@@ -172,7 +194,9 @@ public function test() {
172194 }
173195}
174196
175- // Search railway by name
197+ /**
198+ * Search railway by name
199+ */
176200class SearchRailwayByNameTest extends WebTestCase {
177201 public function test () {
178202 global $ webroot , $ railway ;
0 commit comments