| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- namespace Tests\Services\ForeignHaiRoboticsService;
- use App\Batch;
- use App\MaterialBox;
- use App\Order;
- use App\OrderCommodity;
- use App\Services\BatchService;
- use App\Services\ForeignHaiRoboticsService;
- use App\Services\StationService;
- use App\Services\StationTaskBatchService;
- use App\Station;
- use App\StationRuleBatch;
- use App\StationTask;
- use App\StationTaskBatch;
- use App\StationTaskCommodity;
- use App\StationTaskMaterialBox;
- use Tests\TestCase;
- use App\Traits\TestMockSubServices;
- class MarkBinProcessedTest extends TestCase
- {
- use TestMockSubServices;
- /** @var ForeignHaiRoboticsService $service */
- public $service;
- private $data;
- private $batchAmount = 1;
- private $orderAmount = 2;
- private $orderCommodityAmount = 4;
- function setUp(): void
- {
- parent::setUp();
- $this->service = $this->subMock([
- 'class' => ForeignHaiRoboticsService::class,
- 'methods' => [
- 'putBinToStore' => true,
- ],
- 'subServices' => [
- [
- 'serviceName' => 'stationService',
- 'class' => StationService::class,
- 'methods' => [
- // 'broadcastBinMonitor' => true,
- ],
- ],
- ]
- ]);
- }
- public function testReturned()
- {
- $this->service->markBinProcessed(
- '',
- "8b839c28-f2e3-3d56-b34a-d9ac4fd81fa2",
- true,
- '',
- '',
- true);
- $this->assertTrue(true);
- }
- function tearDown(): void
- {
- parent::tearDown();
- }
- }
|