refactor: Add void to PHPUnit test methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
83854dd4c6
Коммит
353200620f
|
@ -8,6 +8,7 @@ declare(strict_types=1);
|
|||
*/
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\TypeDeclaration\Rector\Class_\AddTestsVoidReturnTypeWhereNoReturnRector;
|
||||
|
||||
return RectorConfig::configure()
|
||||
->withPaths([
|
||||
|
@ -23,4 +24,7 @@ return RectorConfig::configure()
|
|||
)
|
||||
->withPhpSets(
|
||||
php73: true,
|
||||
);
|
||||
)
|
||||
->withRules([
|
||||
AddTestsVoidReturnTypeWhereNoReturnRector::class,
|
||||
]);
|
||||
|
|
|
@ -81,7 +81,7 @@ class SyncServiceTest extends TestCase {
|
|||
);
|
||||
}
|
||||
|
||||
public function testPartialSyncOnUncachedMailbox() {
|
||||
public function testPartialSyncOnUncachedMailbox(): void {
|
||||
$account = $this->createMock(Account::class);
|
||||
$mailbox = $this->createMock(Mailbox::class);
|
||||
$mailbox->expects($this->once())
|
||||
|
@ -100,7 +100,7 @@ class SyncServiceTest extends TestCase {
|
|||
);
|
||||
}
|
||||
|
||||
public function testSyncMailboxReturnsFolderStats() {
|
||||
public function testSyncMailboxReturnsFolderStats(): void {
|
||||
$account = $this->createMock(Account::class);
|
||||
$account->method('getUserId')->willReturn('user');
|
||||
$mailbox = new Mailbox();
|
||||
|
|
Загрузка…
Ссылка в новой задаче