FormatTest.php 785 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Tests\Services\LogisticYDService;
  3. use App\Services\LogisticYDService;
  4. use Tests\TestCase;
  5. use App\LogisticYD;
  6. use App\Traits\TestMockSubServices;
  7. class FormatTest extends TestCase
  8. {
  9. use TestMockSubServices;
  10. /** @var LogisticYDService $service */
  11. public $service;
  12. private $data;
  13. private $amount = 2;
  14. function setUp(): void
  15. {
  16. parent::setUp();
  17. $this->service = app('LogisticYDService');
  18. }
  19. public function testReturned()
  20. {
  21. $this->assertTrue(true);
  22. }
  23. function tearDown(): void
  24. {
  25. parent::tearDown();
  26. }
  27. /**
  28. * @test
  29. */
  30. public function format_test()
  31. {
  32. $result =$this->service->format($this->service->query('4314519335027'));
  33. dd($result);
  34. }
  35. }