assertIsInt($inventoryIndex); $this->assertIsInt($processDataIndex); $this->assertIsInt($financeIndex); $this->assertSame($inventoryIndex + 1, $processDataIndex); $this->assertSame($processDataIndex + 1, $financeIndex); $section = $navigation[$processDataIndex]; $this->assertSame('流程数据', $section['title']); $this->assertSame( [['slug' => 'oa-process', 'title' => 'OA流程']], array_map( static fn (array $page): array => [ 'slug' => $page['slug'], 'title' => $page['title'], ], $section['pages'], ), ); $finance = $navigation[$financeIndex]; $this->assertNotContains( 'process-details', array_column($finance['pages'] ?? [], 'slug'), ); } }