chore(deps): 7.0.11 Composer 패키지 최신화 · 번들 확장 lock 재동기 · vendor 번들 재빌드
코어 composer update 69 패키지(Laravel 12.69.1 · Reverb 1.11.1 · Scout 11.6.1 · Monolog 3.11 · Symfony 7.4.18 등, 메이저 상향은 보류). 번들 확장 16개 lock content-hash 재동기(신규 2), 코어·이커머스 vendor-bundle.zip 재빌드(g7_version 7.0.11). vendor-bundle:build-all --check 가 미설치 확장을 「소스 경로 없음」으로 건너뛰어 _bundled 의 stale 번들이 점검을 통과하던 결함을 수정 — 판정 파일을 빌드·해시와 같은 규칙(_bundled 우선, 활성 폴백)으로 고르고 회귀 테스트 2건 추가. 회귀 점검: 변경 로그 대조 9축 + PHPUnit 4배치 + Chrome MCP 매트릭스 11축 통과.
This commit is contained in:
1 parent
3b0a8c03cf
commit
455d009a83
40 files changed
+652
-511
No files matched your search
@@ -217,6 +217,63 @@ class BuildVendorBundleCommandTest extends TestCase
|
||||
])->assertExitCode(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 미설치 확장(활성 디렉토리 없음)도 --check 는 _bundled 의 composer.json 을 기준으로 판정한다.
|
||||
*
|
||||
* 종전에는 활성 디렉토리 부재를 "소스 경로 없음" 으로 보고하고 판정을 건너뛰어, _bundled 에
|
||||
* 외부 의존성이 선언됐는데 번들이 없거나 stale 인 상태가 --check 를 통과했다.
|
||||
*/
|
||||
public function test_module_vendor_bundle_check_judges_bundled_when_extension_not_installed(): void
|
||||
{
|
||||
$identifier = 'test-uninstalled-'.uniqid();
|
||||
$bundledPath = base_path('modules/_bundled/'.$identifier);
|
||||
File::ensureDirectoryExists($bundledPath);
|
||||
File::put($bundledPath.'/composer.json', json_encode([
|
||||
'name' => 'test/uninstalled',
|
||||
'require' => ['php' => '^8.2', 'test/lib' => '^1.0'],
|
||||
]));
|
||||
|
||||
try {
|
||||
$this->assertDirectoryDoesNotExist(base_path('modules/'.$identifier));
|
||||
|
||||
$this->artisan('module:vendor-bundle', [
|
||||
'identifier' => $identifier,
|
||||
'--check' => true,
|
||||
])
|
||||
->doesntExpectOutputToContain('소스 경로 없음')
|
||||
->expectsOutputToContain('STALE')
|
||||
->assertExitCode(1);
|
||||
} finally {
|
||||
File::deleteDirectory($bundledPath);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 미설치 + 외부 의존성 없음은 종전과 같이 SKIPPED (번들 대상 아님).
|
||||
*/
|
||||
public function test_module_vendor_bundle_check_skips_uninstalled_extension_without_external_dependencies(): void
|
||||
{
|
||||
$identifier = 'test-uninstalled-'.uniqid();
|
||||
$bundledPath = base_path('modules/_bundled/'.$identifier);
|
||||
File::ensureDirectoryExists($bundledPath);
|
||||
File::put($bundledPath.'/composer.json', json_encode([
|
||||
'name' => 'test/uninstalled-plain',
|
||||
'require' => ['php' => '^8.2'],
|
||||
]));
|
||||
|
||||
try {
|
||||
$this->artisan('module:vendor-bundle', [
|
||||
'identifier' => $identifier,
|
||||
'--check' => true,
|
||||
])
|
||||
->doesntExpectOutputToContain('소스 경로 없음')
|
||||
->expectsOutputToContain('SKIPPED (외부 composer 의존성 없음)')
|
||||
->assertExitCode(0);
|
||||
} finally {
|
||||
File::deleteDirectory($bundledPath);
|
||||
}
|
||||
}
|
||||
|
||||
public function test_module_vendor_bundle_check_reports_up_to_date_after_build(): void
|
||||
{
|
||||
$this->artisan('module:vendor-bundle', ['identifier' => $this->fakeModuleIdentifier])
|
||||
|
||||
Reference in new issue
Block a user