HomeControllerTest.php 568 B

123456789101112131415161718192021222324
  1. <?php
  2. // Copyright 2019 Hackware SpA <human@hackware.cl>
  3. // "Hackware Web Services Core" is released under the MIT License terms.
  4. namespace Hawese\Tests;
  5. class HomeControllerTest extends TestCase
  6. {
  7. public function testIndex()
  8. {
  9. $response = $this->request('GET', '/');
  10. $this->assertSame(
  11. env('WALLET_SOURCE_URL'),
  12. $response->getData()->links->wallet_sourcecode
  13. );
  14. $this->assertSame(
  15. env('PAYMENT_SOURCE_URL'),
  16. $response->getData()->links->payment_sourcecode
  17. );
  18. }
  19. }