TempMarkBinProcessedTest.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace Tests\Services\ForeignHaiRoboticsService;
  3. use App\Batch;
  4. use App\MaterialBox;
  5. use App\Order;
  6. use App\OrderCommodity;
  7. use App\Services\BatchService;
  8. use App\Services\ForeignHaiRoboticsService;
  9. use App\Services\StationService;
  10. use App\Services\StationTaskBatchService;
  11. use App\Station;
  12. use App\StationRuleBatch;
  13. use App\StationTask;
  14. use App\StationTaskBatch;
  15. use App\StationTaskCommodity;
  16. use App\StationTaskMaterialBox;
  17. use Tests\TestCase;
  18. use App\Traits\TestMockSubServices;
  19. class MarkBinProcessedTest extends TestCase
  20. {
  21. use TestMockSubServices;
  22. /** @var ForeignHaiRoboticsService $service */
  23. public $service;
  24. private $data;
  25. private $batchAmount = 1;
  26. private $orderAmount = 2;
  27. private $orderCommodityAmount = 4;
  28. function setUp(): void
  29. {
  30. parent::setUp();
  31. $this->service = $this->subMock([
  32. 'class' => ForeignHaiRoboticsService::class,
  33. 'methods' => [
  34. 'putBinToStore' => true,
  35. ],
  36. 'subServices' => [
  37. [
  38. 'serviceName' => 'stationService',
  39. 'class' => StationService::class,
  40. 'methods' => [
  41. // 'broadcastBinMonitor' => true,
  42. ],
  43. ],
  44. ]
  45. ]);
  46. }
  47. public function testReturned()
  48. {
  49. $this->service->markBinProcessed(
  50. '',
  51. "8b839c28-f2e3-3d56-b34a-d9ac4fd81fa2",
  52. true,
  53. '',
  54. '',
  55. true);
  56. $this->assertTrue(true);
  57. }
  58. function tearDown(): void
  59. {
  60. parent::tearDown();
  61. }
  62. }