コード例 #1
0
ファイル: RestApiTest.php プロジェクト: nrocco/restapi
 public function testReadCollectionNonExisting()
 {
     $api = new RestApi($this->database);
     $todos = $api->readCollection('todos');
     $this->assertInternalType('array', $todos);
     $this->assertEquals(400, $todos['code']);
     $this->assertInternalType('array', $todos['body']);
     $this->assertEquals('Resource todos does not exist', $todos['body']['message']);
 }