mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-06 14:07:37 -04:00
fix(applications): persist restart limit state for stopped containers (#11566)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use App\Actions\Database\StopDatabase;
|
||||
use App\Models\BaseModel;
|
||||
|
||||
it('declares strict method types', function () {
|
||||
$handle = new ReflectionMethod(StopDatabase::class, 'handle');
|
||||
$stopContainer = new ReflectionMethod(StopDatabase::class, 'stopContainer');
|
||||
|
||||
expect($handle->getReturnType()?->getName())->toBe('string')
|
||||
->and($stopContainer->getParameters()[0]->getType()?->getName())->toBe(BaseModel::class);
|
||||
});
|
||||
Reference in New Issue
Block a user