Chris@16: 'profile', Chris@16: 'core' => \Drupal::CORE_COMPATIBILITY, Chris@16: 'name' => 'Override ' . $profile, Chris@16: 'hidden' => TRUE, Chris@16: ]; Chris@16: // File API functions are not available yet. Chris@16: $path = $this->siteDirectory . '/profiles/' . $profile; Chris@16: mkdir($path, 0777, TRUE); Chris@16: file_put_contents("$path/$profile.info.yml", Yaml::encode($info)); Chris@16: } Chris@16: } Chris@16: Chris@16: /** Chris@16: * {@inheritdoc} Chris@16: */ Chris@16: protected function setUpProfile() { Chris@16: // This step is skipped, because there is only one visible profile. Chris@16: } Chris@16: Chris@16: /** Chris@16: * Confirms that the installation succeeded. Chris@16: */ Chris@16: public function testInstalled() { Chris@16: $this->assertUrl('user/1'); Chris@16: $this->assertResponse(200); Chris@16: // Confirm that we are logged-in after installation. Chris@18: $this->assertText($this->rootUser->getAccountName()); Chris@16: // Confirm that the minimal profile was installed. Chris@16: $this->assertEqual(drupal_get_profile(), 'minimal'); Chris@16: } Chris@16: Chris@16: }