toContain('echo-private:team.{$teamId},BackupCreated') ->toContain("=> '\$refresh'") ->and($serviceBackups) ->toContain('echo-private:team.{$teamId},BackupCreated') ->and($databaseExecutions) ->toContain('$teamId = currentTeam()->id') ->not->toContain('$userId = Auth::id()') ->and(strpos($databaseBackupJob, "'finished_at' => Carbon::now()->toImmutable()")) ->toBeLessThan(strrpos($databaseBackupJob, 'BackupCreated::dispatch($this->team->id)')); });