|
|
@@ -33,7 +33,8 @@ class OrderCountingRecordsTest extends TestCase
|
|
|
parent::setUp(); // TODO: Change the autogenerated stub
|
|
|
cache()->flush();
|
|
|
$this->newOrderCountingRecordService = new NewOrderCountingRecordService();
|
|
|
- $this->actingAs(factory(User::class)->create(['name' => 'yang']));
|
|
|
+ $user = User::query()->where('name', 'yang')->first();
|
|
|
+ $this->actingAs($user);
|
|
|
$owners = factory(Owner::class)->times(2)->create();
|
|
|
$this->ownerIds = array_column($owners->toArray(), 'id');
|
|
|
$this->queryConditionDay = $this->newOrderCountingRecordService->transfersToCondition(Carbon::now()->subDays($this->step_length)->toDateString(), Carbon::now()->toDateString(), '日', $this->ownerIds);
|