[ __DIR__ . '/fixtures/custom.yml', ], ]); $kernel = new DrupalKernel('prod', new ClassLoader()); $kernel->discoverServiceProviders(); $expect = [ 'app' => [ 'core' => 'core/core.services.yml', ], 'site' => [ __DIR__ . '/fixtures/custom.yml', ], ]; $this->assertAttributeSame($expect, 'serviceYamls', $kernel); } /** * Tests the exception when container_yamls is not set. */ public function testDiscoverServiceNoContainerYamls() { new Settings([]); $kernel = new DrupalKernel('prod', new ClassLoader()); $kernel->discoverServiceProviders(); $expect = [ 'app' => [ 'core' => 'core/core.services.yml', ], 'site' => [], ]; $this->assertAttributeSame($expect, 'serviceYamls', $kernel); } }