Skip to content

Commit

Permalink
Fix variable usage in Client.php; add more assertions to the ClientTe…
Browse files Browse the repository at this point in the history
…st.php (#93)

Correct interact with ticketMessages().
  • Loading branch information
BrandtM committed Dec 21, 2020
1 parent ba61acc commit 98f3658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Expand Up @@ -293,11 +293,11 @@ public function subscriptions()
}

/**
* @return ClaimMessagesNamespace
* @return TicketMessagesNamespace
*/
public function ticketMessages()
{
return $this->claimMessagesNs;
return $this->ticketMessagesNs;
}

/**
Expand Down
6 changes: 5 additions & 1 deletion tests/ClientTest.php
Expand Up @@ -37,5 +37,9 @@ public function testNamespaceInstances()
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\StatusNamespace', $client->status());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\SubscriptionsNamespace', $client->subscriptions());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\UnitsNamespace', $client->units());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\TicketsNamespace', $client->tickets());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\TicketMessagesNamespace', $client->ticketMessages());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\OrderInvoicesNamespace', $client->orderInvoices());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\WarehousesNamespace', $client->warehouses());
}
}
}

0 comments on commit 98f3658

Please sign in to comment.