public function WardenManagerTest::testGenerateDataNoModules in Warden 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Service/WardenManagerTest.php \Drupal\Tests\warden\Unit\Service\WardenManagerTest::testGenerateDataNoModules()
- 3.x tests/src/Unit/Service/WardenManagerTest.php \Drupal\Tests\warden\Unit\Service\WardenManagerTest::testGenerateDataNoModules()
Tests generating module data with no modules.
File
- tests/
src/ Unit/ Service/ WardenManagerTest.php, line 144
Class
- WardenManagerTest
- @coversDefaultClass \Drupal\warden\Service\WardenManager @group warden
Namespace
Drupal\Tests\warden\Unit\ServiceCode
public function testGenerateDataNoModules() {
$expected_data = [
'core' => [
'drupal' => [
'version' => \Drupal::VERSION,
],
],
'contrib' => [],
'custom' => [],
'url' => 'http://www.example.com',
'site_name' => 'My Website',
'key' => $this->token,
'time' => 12345678,
];
$actual_data = $this->wardenManager
->generateSiteData();
$this
->assertEquals($expected_data, $actual_data);
}