Skip to content

Commit 98b90b8

Browse files
authored
Remove unexpected arguments. (gnikyt#877)
1 parent fc6c528 commit 98b90b8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/Actions/AfterAuthorizeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testRunDispatch(): void
4747
// Run
4848
call_user_func(
4949
$this->action,
50-
$shop->getId(0)
50+
$shop->getId()
5151
);
5252

5353
Queue::assertPushed($jobClass);
@@ -68,7 +68,7 @@ public function testRunInline(): void
6868
// Run
6969
$result = call_user_func(
7070
$this->action,
71-
$shop->getId(0)
71+
$shop->getId()
7272
);
7373

7474
$this->assertTrue($result);
@@ -85,7 +85,7 @@ public function testRunNoJobs(): void
8585
// Run
8686
$result = call_user_func(
8787
$this->action,
88-
$shop->getId(0)
88+
$shop->getId()
8989
);
9090

9191
$this->assertFalse($result);

tests/Objects/Values/SessionTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testShouldThrowExceptionForExpiredToken(): void
4747
{
4848
$this->expectException(AssertionFailedException::class);
4949

50-
$token = $this->buildToken(['exp' => Carbon::now()->subDay(1)]);
50+
$token = $this->buildToken(['exp' => Carbon::now()->subDay()]);
5151
SessionToken::fromNative($token);
5252
}
5353
}

tests/Traits/ApiControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function testApiWithoutToken(): void
1313

1414
$response = $this->getJson('/api', ['HTTP_X-Shop-Domain' => $shop->name]);
1515
$response->assertStatus(Response::HTTP_BAD_REQUEST);
16-
$response->assertExactJson(['error' => 'Session token is invalid.'], $response->getContent());
16+
$response->assertExactJson(['error' => 'Session token is invalid.']);
1717
}
1818

1919
public function testApiWithToken(): void
@@ -24,7 +24,7 @@ public function testApiWithToken(): void
2424
'HTTP_X-Shop-Domain' => $shop->name,
2525
'HTTP_Authorization' => "Bearer {$this->buildToken()}",
2626
]);
27-
$response->assertExactJson([], $response->getContent());
27+
$response->assertExactJson([]);
2828
$response->assertOk();
2929
}
3030

0 commit comments

Comments
 (0)