()
| 56 | const serviceMethod = 'App\\Services::SettleService::getSettlesToExcel'; |
| 57 | |
| 58 | const callees = async () => { |
| 59 | cg = await CodeGraph.init(dir, { silent: true }); |
| 60 | await cg.indexAll(); |
| 61 | const excel = cg.searchNodes('excel').map(({ node }) => node) |
| 62 | .find((n) => n.kind === 'method' && n.filePath === controllerPath)!; |
| 63 | expect(excel).toBeDefined(); |
| 64 | return cg.getCallees(excel.id).map(({ node }) => node.qualifiedName).sort(); |
| 65 | }; |
| 66 | |
| 67 | it('uses the imported namespace even when another namespace declares SettleService', async () => { |
| 68 | write('app/Repositories/SettleService.php', serviceSource.replace('App\\Services', 'App\\Repositories')); |
no test coverage detected