Skip to content

Commit

Permalink
add missing tests for /v2/pvp
Browse files Browse the repository at this point in the history
  • Loading branch information
darthmaim committed Sep 8, 2015
1 parent 274864a commit 85365f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/V2/PvpEndpointTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

class PvpEndpointTest extends TestCase {
public function test() {
$endpoint = $this->api()->pvp('API_KEY');

$this->assertEndpointUrl( 'v2/pvp', $endpoint );
$this->assertEndpointIsAuthenticated( $endpoint );

$this->assertInstanceOf( '\GW2Treasures\GW2Api\V2\Endpoint\Pvp\GameEndpoint', $endpoint->games() );
$this->assertInstanceOf( '\GW2Treasures\GW2Api\V2\Endpoint\Pvp\StatsEndpoint', $endpoint->stats() );
}
}

0 comments on commit 85365f6

Please sign in to comment.