Changeset 9b1e043 for src/webservice/tests/StationsTest.php
- Timestamp:
- Sep 7, 2015, 7:04:59 PM (11 years ago)
- Branches:
- master
- Children:
- 7271978
- Parents:
- cf345ee
- File:
-
- 1 edited
-
src/webservice/tests/StationsTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/webservice/tests/StationsTest.php
rcf345ee r9b1e043 103 103 [ "json" => ["name" => "My Weather Station", "city" => "Clausthal-Zellerfeld", "longitude" => 10.28152, "latitude" => 51.8281, "email" => "test@example.org"]] 104 104 ); 105 $this->assertEquals( $response->getStatusCode(), 200, $response->getReasonPhrase());105 $this->assertEquals(200, $response->getStatusCode(), $response->getReasonPhrase()); 106 106 $json = json_decode($response->getBody(), true); 107 107 $this->assertTrue(array_key_exists("result", $json)); … … 110 110 $this->assertTrue(!empty($json["uuid"])); 111 111 112 $stations = $this->query(" stations");112 $stations = $this->query("index.php/stations"); 113 113 $this->assertInternalType("array", $stations); 114 114 $this->assertEquals(1, count($stations));
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/siweather/chrome/site/your_project_logo.png)