Ignore:
Timestamp:
Sep 7, 2015, 7:04:59 PM (11 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
master
Children:
7271978
Parents:
cf345ee
Message:

Fixed testing with php built in webservice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webservice/tests/StationsTest.php

    rcf345ee r9b1e043  
    103103                        [ "json" => ["name" => "My Weather Station", "city" => "Clausthal-Zellerfeld", "longitude" => 10.28152, "latitude" => 51.8281, "email" => "test@example.org"]]
    104104                );
    105                 $this->assertEquals($response->getStatusCode(), 200, $response->getReasonPhrase());
     105                $this->assertEquals(200, $response->getStatusCode(), $response->getReasonPhrase());
    106106                $json = json_decode($response->getBody(), true);
    107107                $this->assertTrue(array_key_exists("result", $json));
    … …  
    110110                $this->assertTrue(!empty($json["uuid"]));
    111111
    112                 $stations = $this->query("stations");
     112                $stations = $this->query("index.php/stations");
    113113                $this->assertInternalType("array", $stations);
    114114                $this->assertEquals(1, count($stations));
Note: See TracChangeset for help on using the changeset viewer.