| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace Tests\Services\BatchService;
- use App\Batch;
- use App\Services\BatchService;
- use Tests\TestCase;
- class TestAssignTasks extends TestCase
- {
- // use RefreshDatabase;
- /** @var BatchService $service */
- private $service;
- private $data = [];
- public function setUp(): void
- {
- parent::setUp();
- $this->service = app('BatchService');
- $batches = factory(Batch::class,3)->create();
- $this->data['batches'] = $batches;
- }
- /**
- * @test
- */
- public function gotShouldProcessingBatches()
- {
- $this->assertTrue(true);
- }
- public function tearDown(): void
- {
- Batch::query()
- ->whereIn('id',data_get($this->data['batches'],'*.id'))
- ->delete();
- parent::tearDown(); // TODO: Change the autogenerated stub
- }
- }
|