You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 line
790B

  1. <?php
  2. namespace Tests\Feature\Http;
  3. use App\Codes\UserRole;
  4. use App\Logics\QRService\CertificateLogic;
  5. use App\Models\HtpmsCustomer\Deposit\Deposit;
  6. use App\Models\HtpmsCustomer\Mst\Shop;
  7. use App\Models\HtpmsCustomer\Mst\ShopNoRelation;
  8. use App\Models\HtpmsCustomer\QRService\CertificationAvailableSetting;
  9. use App\Models\HtpmsCustomer\QRService\CertificationTicket;
  10. use App\Models\User;
  11. use App\Util\DateUtil;
  12. use Illuminate\Support\Carbon;
  13. use Tests\TestCase;
  14. class CustomerListTest extends TestCase
  15. {
  16. public function test(): void
  17. {
  18. $user = User::whereRole(UserRole::ADMIN)->firstOrFail();
  19. $res = $this->actingAs($user)
  20. ->get('/api/customer/list');
  21. print_r($res->json());
  22. $this->assertEquals("0", $res->json('result'));
  23. }
  24. }