assertIsArray($entries); $this->assertNotEmpty($entries); foreach ($entries as $entry) { $this->assertMatchesRegularExpression('/^[0-9a-f]{40}$/', (string) ($entry['previous_sha'] ?? '')); $this->assertMatchesRegularExpression('/^[0-9a-f]{40}$/', (string) ($entry['integrated_sha'] ?? '')); $this->assertNotSame('', trim((string) ($entry['reason'] ?? ''))); } $script = (string) file_get_contents(base_path('scripts/deploy-from-workstation.ps1')); $this->assertStringContainsString('deploy/release-ancestry.json', $script); $this->assertStringContainsString('$ancestryManifest.squashed_integrations', $script); $this->assertStringContainsString( 'git merge-base --is-ancestor $entry.integrated_sha $ReleaseSha', $script, ); } }