InstallTest.php in farmOS 2.x
File
modules/core/api/tests/src/Functional/InstallTest.php
View source
<?php
namespace Drupal\Tests\farm_api\Functional;
use Drupal\Tests\farm_test\Functional\FarmBrowserTestBase;
class InstallTest extends FarmBrowserTestBase {
protected static $modules = [
'simple_oauth',
'farm_api',
'views',
];
public function testKeys() {
$dir_name = 'keys';
$relative_path = DRUPAL_ROOT . '/../' . $dir_name;
$this
->assertDirectoryExists($relative_path);
$pub_filename = sprintf('%s/public.key', $relative_path);
$pri_filename = sprintf('%s/private.key', $relative_path);
$this
->assertFileExists($pub_filename);
$this
->assertFileExists($pri_filename);
}
}
Classes
Name |
Description |
InstallTest |
Tests hook_install functionality of farm_api module. |