Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Jan 22, 2024
1 parent 4e4d017 commit 7614a20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/SortableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public function it_can_set_a_new_order()
public function it_can_touch_timestamps_when_setting_a_new_order()
{
$this->setUpTimestamps();
DummyWithTimestamps::query()->update(['updated_at' => now()]);
DummyWithTimestamps::query()->update(['updated_at' => now()]);
$originalTimestamps = DummyWithTimestamps::all()->pluck('updated_at');

$this->travelTo(now()->addMinute());

config()->set('eloquent-sortable.ignore_timestamps', false);
$newOrder = Collection::make(DummyWithTimestamps::all()->pluck('id'))->shuffle()->toArray();
DummyWithTimestamps::setNewOrder($newOrder);
Expand All @@ -64,11 +64,11 @@ public function it_can_touch_timestamps_when_setting_a_new_order()
public function it_can_set_a_new_order_without_touching_timestamps()
{
$this->setUpTimestamps();
DummyWithTimestamps::query()->update(['updated_at' => now()]);
DummyWithTimestamps::query()->update(['updated_at' => now()]);
$originalTimestamps = DummyWithTimestamps::all()->pluck('updated_at');

$this->travelTo(now()->addMinute());

config()->set('eloquent-sortable.ignore_timestamps', true);
$newOrder = Collection::make(DummyWithTimestamps::all()->pluck('id'))->shuffle()->toArray();
DummyWithTimestamps::setNewOrder($newOrder);
Expand Down

0 comments on commit 7614a20

Please sign in to comment.