class ScriptPersisterTest extends TestCase
{ use ExtensionBehaviour;
use IntegrationTestBehaviour;
public function testRefreshDoesNotDeleteExistingScripts(): void
{ $appPath = __DIR__ . '/../../Manifest/_fixtures/test';
$this->
installApp($appPath);
static::
assertSame(6,
$this->
fetchAppScriptCount());
$scriptPersister =
$this->
getContainer()->
get(ScriptPersister::
class);
$scriptPersister->
refresh();
static::
assertSame(6,
$this->
fetchAppScriptCount());
$this->
removeApp($appPath);
} private function fetchAppScriptCount(): int
{