Skip to content

Commit

Permalink
refactor: Add void to PHPUnit test methods
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Sep 17, 2024
1 parent 83854dd commit 3532006
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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

0 comments on commit 3532006

Please sign in to comment.