FormatTest.php 683 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Tests\Services\LogisticYTOService;
  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('LogisticYTOService');
  18. }
  19. /**
  20. * @test
  21. */
  22. public function format_test()
  23. {
  24. $result = $this->service->format($this->service->query('YT5481469185320'));
  25. dump($result);
  26. $this->assertNotEmpty($result);
  27. }
  28. }