Skip to content

Commit

Permalink
Correct bulk edit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Aug 15, 2024
1 parent 53ca87c commit bc9dd78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/Controller/API/BulkEditApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public function testLinksEdit(): void

array_walk($links, fn($link) => $link->refresh());

$this->assertEqualsCanonicalizing([1, 3], $links[0]->lists()->pluck('id')->sort()->toArray());
$this->assertEqualsCanonicalizing([1, 2, 3], $links[1]->lists()->pluck('id')->sort()->toArray());
$this->assertEqualsCanonicalizing([3], $links[2]->lists()->pluck('id')->sort()->toArray());
$this->assertEqualsCanonicalizing([1, 3], $links[0]->lists()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([1, 2, 3], $links[1]->lists()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([3], $links[2]->lists()->pluck('id')->toArray());

$this->assertEqualsCanonicalizing([1, 3], $links[0]->tags()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([1, 2, 3], $links[1]->tags()->pluck('id')->toArray());
Expand Down
8 changes: 4 additions & 4 deletions tests/Controller/Models/BulkEditControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public function testLinksEdit(): void

array_walk($links, fn($link) => $link->refresh());

$this->assertEqualsCanonicalizing([1, 3], $links[0]->lists()->pluck('id')->sort()->toArray());
$this->assertEqualsCanonicalizing([1, 2, 3], $links[1]->lists()->pluck('id')->sort()->toArray());
$this->assertEqualsCanonicalizing([3], $links[2]->lists()->pluck('id')->sort()->toArray());
$this->assertEqualsCanonicalizing([3, 1], $links[0]->lists()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([1, 2, 3], $links[1]->lists()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([3], $links[2]->lists()->pluck('id')->toArray());

$this->assertEqualsCanonicalizing([1, 3], $links[0]->tags()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([3, 1], $links[0]->tags()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([1, 2, 3], $links[1]->tags()->pluck('id')->toArray());
$this->assertEqualsCanonicalizing([3], $links[2]->tags()->pluck('id')->toArray());

Expand Down

0 comments on commit bc9dd78

Please sign in to comment.