Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Add void to PHPUnit test methods #10166

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\Class_\AddTestsVoidReturnTypeWhereNoReturnRector;

return RectorConfig::configure()
->withPaths([
Expand All @@ -23,4 +24,7 @@
)
->withPhpSets(
php73: true,
);
)
->withRules([
AddTestsVoidReturnTypeWhereNoReturnRector::class,
]);
4 changes: 2 additions & 2 deletions tests/Unit/Service/Sync/SyncServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function setUp(): void {
);
}

public function testPartialSyncOnUncachedMailbox() {
public function testPartialSyncOnUncachedMailbox(): void {
$account = $this->createMock(Account::class);
$mailbox = $this->createMock(Mailbox::class);
$mailbox->expects($this->once())
Expand All @@ -100,7 +100,7 @@ public function testPartialSyncOnUncachedMailbox() {
);
}

public function testSyncMailboxReturnsFolderStats() {
public function testSyncMailboxReturnsFolderStats(): void {
$account = $this->createMock(Account::class);
$account->method('getUserId')->willReturn('user');
$mailbox = new Mailbox();
Expand Down
Loading