-
Notifications
You must be signed in to change notification settings - Fork 626
/
Copy pathFilesExistTest.php
35 lines (32 loc) · 1.13 KB
/
FilesExistTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* This file tests the existence of necessary files in this repo.
*/
namespace SendGrid\Tests\Unit;
use PHPUnit\Framework\TestCase;
/**
* This class tests the existence of necessary files in this repo.
*
* @package SendGrid\Tests\Unit
*/
class FilesExistTest extends TestCase
{
/**
* This method tests that the required files exist in the repo
*/
public function testFilesArePresentInRepo()
{
$rootDir = __DIR__ . '/../..';
$this->assertFileExists("$rootDir/.env.sample");
$this->assertFileExists("$rootDir/PULL_REQUEST_TEMPLATE.md");
$this->assertFileExists("$rootDir/.gitignore");
$this->assertFileExists("$rootDir/.github/workflows/test-and-deploy.yml");
$this->assertFileExists("$rootDir/CHANGELOG.md");
$this->assertFileExists("$rootDir/CODE_OF_CONDUCT.md");
$this->assertFileExists("$rootDir/LICENSE");
$this->assertFileExists("$rootDir/README.md");
$this->assertFileExists("$rootDir/TROUBLESHOOTING.md");
$this->assertFileExists("$rootDir/USAGE.md");
$this->assertFileExists("$rootDir/USE_CASES.md");
}
}