feat(auth): implement AdminAppMeController and AdminAppMeResource; add routes and tests for user context retrieval

This commit is contained in:
2026-07-31 16:11:47 -03:00
parent dd76d5d951
commit dbeaf19513
9 changed files with 104 additions and 60 deletions

View File

@@ -35,14 +35,15 @@ class BootstrapAdminAppControllerTest extends TestCase
$this->getJson('/api/v1/adminapp/bootstrap/ADMIN.SHOPIT.TEST')
->assertOk()
->assertJsonPath('data.codigo', 'shopit')
->assertJsonPath('data.website_type_code', 'shopit')
->assertJsonPath('data.dominio', 'admin.shopit.test')
->assertJsonPath('data.primary_color', '#112233')
->assertJsonPath('data.warning_color', '#ffaa00')
->assertJsonPath('data.login_header_footer_color', '#313131')
->assertJsonPath('data.site_logo', null)
->assertJsonPath('data.footer_logo', $footerLogo->getTemporaryUrl(1440));
->assertJsonPath('data.footer_logo', $footerLogo->getTemporaryUrl(1440))
->assertJsonMissingPath('data.codigo')
->assertJsonMissingPath('data.nombre')
->assertJsonMissingPath('data.dominio');
}
public function test_it_returns_not_found_for_an_unknown_domain(): void