diff -u b/core/tests/Drupal/KernelTests/Core/Extension/ProfileHandlerTest.php b/core/tests/Drupal/KernelTests/Core/Extension/ProfileHandlerTest.php --- b/core/tests/Drupal/KernelTests/Core/Extension/ProfileHandlerTest.php +++ b/core/tests/Drupal/KernelTests/Core/Extension/ProfileHandlerTest.php @@ -33,8 +33,8 @@ $this->assertNotEmpty($info); $this->assertEquals($info['name'], 'Testing Inherited'); $this->assertEquals($info['base profile'], 'testing'); - $this->assertTrue(in_array('config', $info['dependencies'], 'config should be found in dependencies')); - $this->assertFalse(in_array('page_cache', $info['dependencies'], 'page_cache should not be found in dependencies')); + $this->assertTrue(in_array('config', $info['dependencies']), 'config should be found in dependencies as it is a dependency of this profile.'); + $this->assertTrue(in_array('page_cache', $info['dependencies']), 'page_cache should be found in dependencies as it is a dependency of the parent profile.'); $this->assertTrue($info['hidden'], 'Profiles should be hidden'); $this->assertNotEmpty($info['profile_list']); $profile_list = $info['profile_list']; @@ -46,10 +46,7 @@ // Test that profiles without any base return normalized info. $info = $profile_handler->getProfileInfo('minimal'); - $this->assertInternalType('array', $info['base profile']); - - $this->assertArrayHasKey('name', $info['base profile']); - $this->assertEmpty($info['base profile']); + $this->assertTrue($info['base profile'] == ''); // Tests three levels profile inheritance. $info = $profile_handler->getProfileInfo('testing_subsubprofile');